From 90c22c96482ba61d8d818bd2dda4e6e3dd5550bf Mon Sep 17 00:00:00 2001 From: yunpeng Date: Thu, 19 Dec 2024 20:41:23 +0800 Subject: [PATCH] update cicd_script --- .gitea/workflows/blog_hexo.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/blog_hexo.yaml b/.gitea/workflows/blog_hexo.yaml index d7a069b..80f3c91 100644 --- a/.gitea/workflows/blog_hexo.yaml +++ b/.gitea/workflows/blog_hexo.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest container: volumes: - - ${{ env.DEPLOYED_DIR }}:/deployed-site + - /opt/1panel/apps/openresty/openresty/www/sites/hexoblog/index:/deployed-site steps: - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." @@ -38,5 +38,6 @@ jobs: - name: Deploy run: | echo "🔄 Deploying Hexo Blog..." + rm -rf /deployed-site/* cp -r public/* /deployed-site/ - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file