File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed
Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 11name : release
22
33on :
4- pull_request_target :
5- types : [closed]
6- branches :
7- - main
8- - 3.x
4+ push :
5+ tags :
6+ - " v*"
97
108# Remove default permissions of GITHUB_TOKEN for security
119# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
1210permissions : {}
1311
1412jobs :
1513 release :
16- if : github.repository == 'nuxt/nuxt' && github.event.pull_request.merged == true && (startsWith(github.event.pull_request.head.ref, 'v3.') || startsWith(github.event.pull_request.head.ref, 'v4.'))
1714 concurrency :
1815 group : release
1916 permissions :
4138 - name : 🛠 Build and release project
4239 run : node scripts/release.ts
4340 env :
44- TAG : ${{ startsWith(github.event.pull_request.head.ref, 'v3.') && '3x' || 'latest' }}
45-
46- - name : 🏷️ Create tag
47- env :
48- TAG_NAME : ${{ github.event.pull_request.head.ref }}
49- run : |
50- git tag "$TAG_NAME"
51- git push origin "$TAG_NAME"
52-
53- - name : 🛳️ Create GitHub release
54- env :
55- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56- TAG_NAME : ${{ github.event.pull_request.head.ref }}
57- RELEASE_NAME : ${{ github.event.pull_request.head.ref }}
58- BODY : ${{ github.event.pull_request.body }}
59- run : gh release create "$TAG_NAME" --title "$RELEASE_NAME" --notes "$BODY"
41+ TAG : ${{ startsWith(github.ref_name, 'v3.') && '3x' || 'latest' }}
You can’t perform that action at this time.
0 commit comments