-
Notifications
You must be signed in to change notification settings - Fork 441
48 lines (39 loc) · 1.39 KB
/
release.yml
File metadata and controls
48 lines (39 loc) · 1.39 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
name: Build and package release build
on:
push:
branches: [ "release" ]
workflow_dispatch:
jobs:
package:
name: Build and package release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
- name: Get BizHawk version
run: echo "BIZHAWK_VERSION=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs)" >> $GITHUB_ENV
- name: Update version info
run: Dist/UpdateVersionInfoForRelease.sh
- name: Build solution
run: Dist/BuildRelease.sh
- name: Package (Linux)
run: Dist/Package.sh
- name: Package into .tar.gz
working-directory: packaged_output
run: tar -czf ../BizHawk-${{ env.BIZHAWK_VERSION }}-linux-x64.tar.gz --owner=0 --group=0 *
- name: Package (Windows)
run: Dist/Package.sh windows-x64
- name: Package into .zip
working-directory: packaged_output
run: zip -r ../BizHawk-${{ env.BIZHAWK_VERSION }}-win-x64.zip .
- name: Upload release builds
uses: actions/upload-artifact@v4
with:
name: BizHawk-${{ env.BIZHAWK_VERSION }}-release
path: |
BizHawk-${{ env.BIZHAWK_VERSION }}-linux-x64.tar.gz
BizHawk-${{ env.BIZHAWK_VERSION }}-win-x64.zip