From 8609578d263803b62e77483f1b00b98eb6316766 Mon Sep 17 00:00:00 2001 From: fxliang Date: Wed, 24 Jul 2024 12:01:41 +0800 Subject: [PATCH] ci: add job to deploy testing appcast --- .github/workflows/release-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 986fd116a..a71ca2cf2 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -109,7 +109,22 @@ jobs: run: | .\build.bat appcast - - name: Deploy testing/weasel/appcast.xml to rime.github.io + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + if-no-files-found: error + path: testing\weasel\appcast.xml + + update_appcast: + permissions: + contents: write + runs-on: ubuntu-latest + needs: [build-and-release] + steps: + - name: Download artifacts + uses: actions/download-artifacts@v4 + + - name: Deploy appcast uses: peaceiris/actions-gh-pages@v4 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}