-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 998 Bytes
/
release.yml
File metadata and controls
38 lines (33 loc) · 998 Bytes
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
name: release
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Setup .NET 10
uses: actions/setup-dotnet@v1
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore src/Sigurn.CommandLine.sln
- name: Build
run: dotnet build -c Release --no-restore src/Sigurn.CommandLine.sln
- name: Test
run: dotnet test -c Release --no-build --verbosity normal src/Sigurn.CommandLine.sln
- name: Pack
run: dotnet pack -c Release --no-build src/Sigurn.CommandLine.sln
- name: Publish artifacts
uses: softprops/action-gh-release@v1
with:
files: |
src/Sigurn.CommandLine/bin/Release/*.nupkg
src/Sigurn.CommandLine/bin/Release/*.snupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}