Skip to content

Commit 468d136

Browse files
committed
ci: git push assets to "release" branch
1 parent b0c1157 commit 468d136

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
./backend/dist/sub-store-parser.loon.min.js
6060
./backend/dist/cron-sync-artifacts.min.js
6161
./backend/dist/sub-store.bundle.js
62+
- name: Git push assets to "release" branch
63+
run: |
64+
cd backend/dist || exit 1
65+
git init
66+
git config --local user.name "github-actions[bot]"
67+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
68+
git checkout -b release
69+
git add .
70+
git commit -m "release: ${{ steps.tag.outputs.release_tag }}"
71+
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
72+
git push -f -u origin release
6273
- name: Sync to GitLab
6374
env:
6475
GITLAB_PIPELINE_TOKEN: ${{ secrets.GITLAB_PIPELINE_TOKEN }}

backend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.14.230",
3+
"version": "2.14.233",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
55
"main": "src/main.js",
66
"scripts": {

0 commit comments

Comments
 (0)