Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyandreichuk authored Mar 22, 2021
1 parent 524dddf commit e36b0b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Nuget
on:
push:
tags:
- v*
- '**'

workflow_dispatch:

Expand All @@ -14,11 +14,14 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: |
tagParts=(${GITHUB_REF//\// })
VERSION="${tagParts[2]}"
VERSION="${VERSION//v}"
nuget restore
cd sdk/Notifo.SDK/
msbuild Notifo.SDK.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:OutputPath=../..
msbuild Notifo.SDK.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:Version=$VERSION /p:OutputPath=../..
cd ../Notifo.SDK.FirebasePlugin/
msbuild Notifo.SDK.FirebasePlugin.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:OutputPath=../..
msbuild Notifo.SDK.FirebasePlugin.csproj /verbosity:normal /t:Rebuild /p:Configuration=Release /p:Version=$VERSION /p:OutputPath=../..
- name: Publish NuGet
run: |
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
Expand Down

0 comments on commit e36b0b9

Please sign in to comment.