-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.2 KB
/
release.yml
File metadata and controls
53 lines (42 loc) · 1.2 KB
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
51
52
53
name: release
on:
push:
tags:
- 'v*'
jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
environment: nuget-push
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Read more: https://devblogs.microsoft.com/dotnet/enhanced-security-is-here-with-the-new-trust-publishing-on-nuget-org/
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: nugetLogin
with:
user: ${{ secrets.NUGET_USER }}
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
- name: Run './build.cmd Verify Cover Publish'
run: ./build.cmd Verify Cover Publish --no-logo
env:
NUGET_API_KEY: ${{ steps.nugetLogin.outputs.NUGET_API_KEY }}
- uses: actions/upload-artifact@v4
with:
name: testresults
path: artifacts/testresults
- uses: actions/upload-artifact@v4
with:
name: reports
path: artifacts/reports
- uses: actions/upload-artifact@v4
with:
name: packages
path: artifacts/packages