-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.6 KB
/
dotnet-core.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
46
47
48
49
name: .NET Core
on: push
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Build for Windows
run: dotnet publish -r win-x64 --configuration Release
- name: Build for Linux
run: dotnet publish -r linux-x64 --configuration Release
- name: Build for macOS
run: dotnet publish -r osx-x64 --configuration Release
- name: Upload artifact - Windows
uses: actions/upload-artifact@v2
with:
name: ALPlayer-win-x64
path: NScumm.Audio.Player/bin/Release/netcoreapp3.0/win-x64/publish/*
- name: Upload artifact - Linux
uses: actions/upload-artifact@v2
with:
name: ALPlayer-linux-x64
path: NScumm.Audio.Player/bin/Release/netcoreapp3.0/linux-x64/publish/*
- name: Upload artifact - macOS
uses: actions/upload-artifact@v2
with:
name: ALPlayer-osx-x64
path: NScumm.Audio.Player/bin/Release/netcoreapp3.0/osx-x64/publish/*
- name: Test
run: dotnet test --verbosity normal
- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: true
files: |
NScumm.Audio.Player/bin/Release/netcoreapp3.0/linux-x64/publish/*
NScumm.Audio.Player/bin/Release/netcoreapp3.0/win-x64/publish/*
NScumm.Audio.Player/bin/Release/netcoreapp3.0/osx-x64/publish/*