-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (47 loc) · 1.58 KB
/
nuget.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
name: NuGet
on:
push:
branches:
- master
- dev
- dev-1.35.0
- dev-1.35.0-Restructured
jobs:
nuget-1:
name: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Pack
run: |
dotnet pack -c Release --output nupkgs BeatTogether.DedicatedServer.Interface/BeatTogether.DedicatedServer.Interface.csproj
- name: Publish
run: |
dotnet nuget push "nupkgs/BeatTogether.DedicatedServer.*.nupkg" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate
nuget-2:
name: https://api.nuget.org/v3/index.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
- name: Pack
run: |
dotnet pack -c Release --output nupkgs BeatTogether.DedicatedServer.Interface/BeatTogether.DedicatedServer.Interface.csproj
- name: Publish
run: |
dotnet nuget push "nupkgs/BeatTogether.DedicatedServer.*.nupkg" -k ${{secrets.NUGET_API_KEY}} --skip-duplicate