-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.04 KB
/
build.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
name: Build
on:
push:
jobs:
build:
strategy:
matrix:
rid: [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get short commit hash
id: commit_hash
run: echo "short_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Publish the application
run: dotnet publish src -c Release -r ${{ matrix.rid }} -p:VersionSuffix=${{ steps.commit_hash.outputs.short_hash }} -o publish/TeamBuilder_${{ steps.commit_hash.outputs.short_hash }}_${{ matrix.rid }}
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: TeamBuilder_${{ steps.commit_hash.outputs.short_hash }}_${{ matrix.rid }}
path: publish/TeamBuilder_${{ steps.commit_hash.outputs.short_hash }}_${{ matrix.rid }}/