Skip to content

Commit 0f09ea2

Browse files
Update publish.yml
1 parent 4e0931d commit 0f09ea2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,19 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Build
15+
- name: Deploy
1616
run: |
1717
tagParts=(${GITHUB_REF//\// })
1818
VERSION="${tagParts[2]}"
1919
VERSION="${VERSION//v}"
2020
nuget restore
2121
cd sdk/Notifo.SDK/
2222
msbuild Notifo.SDK.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:Version=$VERSION
23+
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
2324
cd ../Notifo.SDK.FirebasePlugin/
2425
msbuild Notifo.SDK.FirebasePlugin.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:Version=$VERSION
25-
- name: Publish NuGet
26-
run: |
27-
ls sdk/Notifo.SDK/bin/Release/
28-
ls sdk/Notifo.SDK.FirebasePlugin/bin/Release/
29-
dotnet nuget push sdk/Notifo.SDK/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
30-
dotnet nuget push sdk/Notifo.SDK.FirebasePlugin/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
26+
dotnet nuget bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
27+
28+
3129
3230

0 commit comments

Comments
 (0)