-
Notifications
You must be signed in to change notification settings - Fork 186
47 lines (39 loc) · 1.05 KB
/
latest_release.yml
File metadata and controls
47 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Latest game archive"
on:
push:
branches:
- "master"
jobs:
pre-release:
name: "latest release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout source code"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "Install Linux deps"
run: |
sudo apt install gettext git
- name: "Creating the archive"
run: |
git fetch --tags --force
./utils/gameshell_archive.sh
- name: "Create or move 'latest' tag"
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag -f latest
git push origin latest --force
- name: "Create GitHub Release"
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: "Latest game archive"
prerelease: true
files: |
LICENSE
gameshell.sh
Dockerfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}