From bb5ce1a651ab55b3c29e4ae31e2fa1c5a82c2bdd Mon Sep 17 00:00:00 2001 From: PJ568 Date: Fri, 20 Oct 2023 10:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E5=B0=9D=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/568tools_Release.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/568tools_Release.yml b/.github/workflows/568tools_Release.yml index 3470b803..9eb9c811 100644 --- a/.github/workflows/568tools_Release.yml +++ b/.github/workflows/568tools_Release.yml @@ -31,7 +31,6 @@ jobs: cp -v -u -r /home/runner/tree/assets/* . rm -r ./lib/ git rm --cached lib - git submodule add -b tools https://github.com/PJ-568/568tools.git ./lib - name: HTML/CSS/JS Minifier uses: docker://devatherock/minify-js:2.0.0 @@ -56,13 +55,22 @@ jobs: branch: release # The branch the action should deploy to. folder: . # The folder the action should deploy. - # - name: Push - # run: | - # git config --global user.name "PJ569-bot" - # git config --global user.email "LiuTian-PJ568@PJ568.eu.org" - # git add -A - # git commit -m '自动 Release' - # git push + - name: Checkout release branch + uses: actions/checkout@v3 + with: + ref: release + + - name: Update tool lib + run: | + rm -r ./lib/ + git config --global user.name "PJ569-bot" + git config --global user.email "LiuTian-PJ568@PJ568.eu.org" + git submodule update + # git rm --cached lib + # git submodule add -b tools https://github.com/PJ-568/568tools.git ./lib + # git add ./lib/ + git commit -m '库更新' + git push - name: Ping Google run: curl https://www.google.com/ping?sitemap=https://Tools.PJ568.eu.org/sitemap.xml \ No newline at end of file