File tree Expand file tree Collapse file tree 3 files changed +27
-7
lines changed
Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 99 name : Build Website
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v4
13- with :
14- fetch-depth : 1
1512 - uses : actions/setup-node@v4
1613 with :
1714 node-version : ' 18'
Original file line number Diff line number Diff line change @@ -12,17 +12,19 @@ permissions:
1212 pages : write
1313 id-token : write
1414
15- concurrency :
16- group : ${{ github.sha }}
17- cancel-in-progress : true
18-
1915jobs :
2016 deploy :
17+ concurrency :
18+ group : ${{ github.sha }}
2119 environment :
2220 name : github-pages
2321 url : ${{ steps.deployment.outputs.page_url }}
2422 name : Build Website
2523 runs-on : ubuntu-latest
2624 steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 1
2729 - name : Build
2830 uses : ./.github/actions/build
Original file line number Diff line number Diff line change 1515 description : ' tag name'
1616 required : true
1717run-name : ${{ github.event.inputs.repo }}
18+
19+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20+ permissions :
21+ contents : read
22+ pages : write
23+ id-token : write
24+
1825jobs :
1926 update_tag :
2027 runs-on : ubuntu-latest
3946 git remote add origin "https://${{ secrets.GRAPHQL_TOKEN }}@github.com/${{ github.event.inputs.repo }}.git"
4047 git push origin "$VERCODE-$VERNAME" -f
4148 curl -X PATCH -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GRAPHQL_TOKEN }}" https://api.github.com/repos/Xposed-Modules-Repo/${{ github.event.inputs.repo }}/releases/${{ github.event.inputs.release }} -d "{\"tag_name\":\"${VERCODE}-${VERNAME}\"}"
49+
50+ deploy :
51+ concurrency :
52+ group : ${{ github.sha }}
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
56+ name : Build Website
57+ runs-on : ubuntu-latest
58+ steps :
59+ - name : Checkout
60+ uses : actions/checkout@v4
61+ with :
62+ fetch-depth : 1
4263 - name : Build
4364 uses : ./.github/actions/build
You can’t perform that action at this time.
0 commit comments