Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish packages to feeds | |
on: | |
release: | |
types: [published, edited] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- name: Pack | |
run: dotnet pack -c Release --output pkg | |
# Don't forget to go to Settings->Actions->General->Workflow permissions and select "Read and write permissions" | |
- name: Publish the package to GPR | |
run: dotnet nuget push pkg/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/jzebedee/index.json --skip-duplicate | |
- name: Publish the package to NuGet | |
run: dotnet nuget push pkg/*.nupkg -k ${{ secrets.THUMBHASH_NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate |