-
Notifications
You must be signed in to change notification settings - Fork 7
23 lines (19 loc) · 883 Bytes
/
publish.yml
File metadata and controls
23 lines (19 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Publish NuGet Packages
on:
push:
tags:
- 'nuget-v*'
jobs:
publish_upload:
name: Publish NuGet Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pack and upload NuGet package
run: |
dotnet pack Shadowsocks -c Release
dotnet pack Shadowsocks.Interop -c Release
dotnet pack Shadowsocks.OnlineConfig -c Release
dotnet nuget push Shadowsocks/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
dotnet nuget push Shadowsocks.Interop/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
dotnet nuget push Shadowsocks.OnlineConfig/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate