From fd0cbfa9657595f3564adb2519deb72310506f6b Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 28 Feb 2024 22:56:21 +0800 Subject: [PATCH] ci: git push assets to "release" branch --- .github/workflows/main.yml | 9 +++++++++ backend/package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba65ca1..096d9e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,6 +59,15 @@ 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 || exit 1 + git init + 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..690e969 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.230", + "version": "2.14.231", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": {