File tree Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,26 @@ jobs:
2222
2323 - name : " Creating the archive"
2424 run : |
25- git fetch --tags --force && ./utils/archive.sh
25+ git fetch --tags --force
26+ ./utils/archive.sh
2627
27- - uses : " marvinpinto/action-automatic-releases@latest"
28+ - name : " Create or move 'latest' tag"
29+ run : |
30+ git config user.name "github-actions"
31+ git config user.email "[email protected] " 32+ git tag -f latest
33+ git push origin latest --force
34+
35+ - name : " Create GitHub Release"
36+ uses : softprops/action-gh-release@v2
2837 with :
29- repo_token : " ${{ secrets.GITHUB_TOKEN }} "
30- automatic_release_tag : " latest "
38+ tag_name : latest
39+ name : " Latest game archive "
3140 prerelease : true
32- title : " Latest game archive"
3341 files : |
3442 LICENSE
3543 gameshell.sh
3644 Dockerfile
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ name: "Tagged release"
33on :
44 push :
55 tags :
6- - " v*"
6+ - " v*" # Trigger only on version tags
77
88jobs :
99 pre-release :
1010 runs-on : " ubuntu-latest"
11+
1112 steps :
1213 - name : " Checkout source code"
1314 uses : " actions/checkout@v4"
@@ -20,13 +21,18 @@ jobs:
2021
2122 - name : " Creating the archive"
2223 run : |
23- git fetch --tags --force && ./utils/archive.sh
24+ git fetch --tags --force
25+ ./utils/archive.sh
2426
25- - uses : " marvinpinto/action-automatic-releases@latest"
27+ - name : " Create GitHub Release"
28+ uses : softprops/action-gh-release@v2
2629 with :
27- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
30+ name : " Release ${{ github.ref_name }}"
2831 prerelease : false
2932 files : |
3033 LICENSE
3134 gameshell.sh
3235 Dockerfile
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+
You can’t perform that action at this time.
0 commit comments