Skip to content

Commit 22a7558

Browse files
committed
updated release workflows
1 parent 9aae3c4 commit 22a7558

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.github/workflows/latest_game_archive.yml renamed to .github/workflows/latest_release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,25 @@ jobs:
2222
2323
- name: "Creating the archive"
2424
run: |
25-
git fetch --tags --force && ./utils/archive.sh
25+
git fetch --tags --force && ./utils/gameshell_archive.sh
2626
27-
- uses: "marvinpinto/action-automatic-releases@latest"
27+
- name: "Create or move 'latest' tag"
28+
run: |
29+
git config user.name "github-actions"
30+
git config user.email "[email protected]"
31+
git tag -f latest
32+
git push origin latest --force
33+
34+
- name: "Create GitHub Release"
35+
uses: softprops/action-gh-release@v2
2836
with:
29-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
30-
automatic_release_tag: "latest"
37+
tag_name: latest
38+
name: "Latest game archive"
3139
prerelease: true
32-
title: "Latest game archive"
3340
files: |
3441
LICENSE
3542
gameshell.sh
3643
Dockerfile
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+

.github/workflows/tag_release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: "Tagged release"
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- "v*" # Trigger only on version tags
77

88
jobs:
99
pre-release:
1010
runs-on: "ubuntu-latest"
11+
1112
steps:
1213
- name: "Checkout source code"
1314
uses: "actions/checkout@v4"
@@ -20,13 +21,17 @@ jobs:
2021
2122
- name: "Creating the archive"
2223
run: |
23-
git fetch --tags --force && ./utils/archive.sh
24+
git fetch --tags --force && ./utils/gameshell_archive.sh
2425
25-
- uses: "marvinpinto/action-automatic-releases@latest"
26+
- name: "Create GitHub Release"
27+
uses: softprops/action-gh-release@v2
2628
with:
27-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
29+
name: "Release ${{ github.ref_name }}"
2830
prerelease: false
2931
files: |
3032
LICENSE
3133
gameshell.sh
3234
Dockerfile
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+

0 commit comments

Comments
 (0)