diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba65ca1..5666f92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,6 +59,17 @@ jobs: ./backend/dist/sub-store-parser.loon.min.js ./backend/dist/cron-sync-artifacts.min.js ./backend/dist/sub-store.bundle.js + - name: Git push assets to "release" branch + run: | + cd backend/dist || exit 1 + git init + git config --local user.name "github-actions[bot]" + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git checkout -b release + git add . + git commit -m "release: ${{ steps.tag.outputs.release_tag }}" + git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" + git push -f -u origin release - name: Sync to GitLab env: GITLAB_PIPELINE_TOKEN: ${{ secrets.GITLAB_PIPELINE_TOKEN }} diff --git a/backend/package.json b/backend/package.json index 1628701..6d4fdbd 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.230", + "version": "2.14.233", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": {