From 7fead31ebf4592ea1fef6ea43773cd050ef94f91 Mon Sep 17 00:00:00 2001 From: PJ568 Date: Fri, 20 Oct 2023 10:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=9F=E7=9C=9F=E6=AD=A3=E6=AD=A3=E7=9A=84?= =?UTF-8?q?=E8=A1=A5=E4=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/568tools_Release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/568tools_Release.yml b/.github/workflows/568tools_Release.yml index 5ce7aeef..1c45a672 100644 --- a/.github/workflows/568tools_Release.yml +++ b/.github/workflows/568tools_Release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Clone + - name: Clone assets branch run: | echo '创建 tree/:' mkdir /home/runner/tree @@ -21,17 +21,15 @@ jobs: ls /home/runner/tree/assets - name: Checkout main branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main submodules: recursive - - name: Merge + - name: Merge main with assets run: | echo '复制 tree/assets/* 到 .:' cp -v -u -r /home/runner/tree/assets/* . - rm -r ./lib/ - git rm --cached lib - name: HTML/CSS/JS Minifier uses: docker://devatherock/minify-js:2.0.0 @@ -50,8 +48,8 @@ jobs: echo "url-count = ${{ steps.sitemap.outputs.url-count }}" echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" - # Deploy - - uses: JamesIves/github-pages-deploy-action@4.1.7 + - name: Deploy as pages + uses: JamesIves/github-pages-deploy-action@4.1.7 with: branch: release # The branch the action should deploy to. folder: . # The folder the action should deploy.