-
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (47 loc) · 1.45 KB
/
release-workflow.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
51
52
53
54
55
56
57
58
59
60
name: "Release workflow"
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- run: dotnet restore
- run: dotnet pack
- name: Drop SimpleOTP
uses: actions/upload-artifact@main
with:
name: SimpleOTP
path: libraries/SimpleOTP/bin/Release/EugeneFox.SimpleOTP*.*nupkg
- name: Drop SimpleOTP.DependencyInjection
uses: actions/upload-artifact@main
with:
name: SimpleOTP.DependencyInjection
path: libraries/SimpleOTP.DependencyInjection/bin/Release/EugeneFox.SimpleOTP.DependencyInjection*.*nupkg
publish-nuget:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
merge-multiple: true
- name: Publish NuGet and symbols
uses: edumserrano/[email protected]
with:
api-key: ${{ secrets.NUGET_API_KEY }}
working-directory: .
publish-github:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
merge-multiple: true
- name: dotnet nuget push
run: dotnet nuget push *.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/xfox111/index.json --skip-duplicate --no-symbols