-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.44 KB
/
publish.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
name: Publish Nuget
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: build test
if: github.event_name == 'pull_request'
run: |
nuget restore
cd sdk/Notifo.SDK.Core/
msbuild Notifo.SDK.Core.csproj
cd ../Notifo.SDK.FirebasePlugin/
msbuild Notifo.SDK.FirebasePlugin.csproj
cd ../Notifo.SDK.Worker/
msbuild Notifo.SDK.Worker.csproj
- name: publish
if: github.event_name != 'pull_request'
run: |
nuget restore
cd sdk/Notifo.SDK.Core/
msbuild Notifo.SDK.Core.csproj /p:Configuration=Release
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -n
cd ../Notifo.SDK.FirebasePlugin/
msbuild Notifo.SDK.FirebasePlugin.csproj /p:Configuration=Release
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -n
cd ../Notifo.SDK.Worker/
msbuild Notifo.SDK.Worker.csproj /p:Configuration=Release
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -n