Skip to content

Commit

Permalink
adding automated build numbers and nuget packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
nullfx committed Jul 7, 2023
1 parent 1418aa1 commit 979b1f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cicd-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ jobs:
- name: create nuget packages
run: dotnet pack -c Release -o ./out
- name: push nuget packages to github
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" -s "https://nuget.pkg.github.com/nullfx/index.json" -k ${{ secrets.GIT_TOKEN }}
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" -s "https://nuget.pkg.github.com/nullfx/index.json" -k "$TOKEN"
env:
TOKEN: ${{ secrets.GIT_TOKEN }}
- name: push nuget packages to nuget.org
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" --skip-duplicate -s "https://api.nuget.org/v3/index.json" -k ${{ secrets.NUGET_ORG_API_KEY }}
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" --skip-duplicate -s "https://api.nuget.org/v3/index.json" -k "$TOKEN"
env:
TOKEN: ${{ secrets.NUGET_ORG_API_KEY }}
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down

0 comments on commit 979b1f9

Please sign in to comment.