-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.1 KB
/
release.yml
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
name: Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# todo: calculate version automatically
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
runtime: osx-arm64
artifact: xb360
- os: windows-latest
runtime: win-x64
artifact: xb360.exe
- os: ubuntu-latest
runtime: linux-x64
artifact: xb360
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Publish binary
run: dotnet publish ./xb360.csproj -c Release -r ${{ matrix.runtime }} -o ./${{ matrix.runtime }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.runtime }} # todo: include version number
path: ./${{ matrix.runtime }}/${{ matrix.artifact }}