Skip to content

Commit

Permalink
Fix the NuGet package publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusz-schimke committed Apr 11, 2024
1 parent cbd51bd commit d42f6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
SNK: ${{ secrets.snk }}
run: |
$snk = [Convert]::FromBase64String("$env:SNK")
Set-Content "src\SensitiveString\SensitiveString.snk" -Value $snk -AsByteStream
Set-Content "src\TextPrivacy.SensitiveString\SensitiveString.snk" -Value $snk -AsByteStream
- name: Build NuGet Package
run: dotnet pack src\SensitiveString\SensitiveString.csproj --configuration Publish -p:Repository=${{ github.repository }} -p:Branch=${{ env.BRANCH }} -p:Commit=${{ github.sha }}
run: dotnet pack src\TextPrivacy.SensitiveString\TextPrivacy.SensitiveString.csproj --configuration Publish -p:Repository=${{ github.repository }} -p:Branch=${{ env.BRANCH }} -p:Commit=${{ github.sha }}

- name: Publish NuGet Package
run: dotnet nuget push src\SensitiveString\bin\Publish\SensitiveString.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.nuget_api_key }}
run: dotnet nuget push src\TextPrivacy.SensitiveString\bin\Publish\SensitiveString.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.nuget_api_key }}

0 comments on commit d42f6d4

Please sign in to comment.