Skip to content

Workflow file for this run

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