-
Notifications
You must be signed in to change notification settings - Fork 18
50 lines (37 loc) · 1.75 KB
/
dotnet.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
50
name: .NET Build
# Trigger the workflow on push or pull request
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Test with dotnet
working-directory: ./src
run: dotnet test --configuration Release
- name: Package NuGet
working-directory: ./src
run: dotnet pack --include-symbols --include-source --configuration Release
- name: Upload NuGet Bufdio.Spice86
working-directory: ./src/Bufdio.Spice86/bin/Release
run: nuget push Bufdio.Spice86.6.1.8.nupkg ${{secrets.NUGET_API_KEY}} -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate
- name: Upload NuGet Spice86.Shared
working-directory: ./src/Spice86.Shared/bin/Release
run: nuget push Spice86.Shared.6.1.8.nupkg ${{secrets.NUGET_API_KEY}} -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate
- name: Upload NuGet Spice86.Logging
working-directory: ./src/Spice86.Logging/bin/Release
run: nuget push Spice86.Logging.6.1.8.nupkg ${{secrets.NUGET_API_KEY}} -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate
- name: Upload NuGet Spice86.Core
working-directory: ./src/Spice86.Core/bin/Release
run: nuget push Spice86.Core.6.1.8.nupkg ${{secrets.NUGET_API_KEY}} -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate
- name: Upload NuGet Spice86
working-directory: ./src/Spice86/bin/Release
run: nuget push Spice86.6.1.8.nupkg ${{secrets.NUGET_API_KEY}} -Source 'https://api.nuget.org/v3/index.json' -SkipDuplicate