Repository navigation
55 lines (48 loc) · 1.48 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (48 loc) · 1.48 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
47
48
49
50
51
52
53
54
55
name: Create GitHub Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-windows:
uses: ./.github/workflows/windows-playable-build.yml
build-linux:
uses: ./.github/workflows/linux.yml
with:
build-mode: release
upload-build-for-next-job: true
publish:
needs: [build-windows, build-linux]
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Download release assets
uses: actions/download-artifact@v8
with:
path: release-files
pattern: '{release-asset-linux-*,SkyrimTogether-*}'
merge-multiple: true
- name: Verify release assets
run: |
version="${GITHUB_REF_NAME#v}"
expected_assets=(
"SkyrimTogether-${version}-windows-x64.zip"
"SkyrimTogether-${version}-windows-x64-debug-symbols.zip"
"SkyrimTogetherServer-${version}-linux-amd64.tar.gz"
"SkyrimTogetherServer-${version}-linux-arm64.tar.gz"
)
for asset in "${expected_assets[@]}"; do
test -f "release-files/$asset"
done
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
version="${GITHUB_REF_NAME#v}"
gh release create "$GITHUB_REF_NAME" \
./release-files/* \
--verify-tag \
--generate-notes \
--title "Skyrim Together $version"