.github/workflows/push_packages.yml #5
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
on: | |
release: | |
types: published | |
jobs: | |
push: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: ✅ Checkout repository | |
uses: actions/checkout@v4 | |
with: { fetch-depth: 0 } | |
- name: 🔽 Download release assets | |
run: ./build.sh download-release-assets | |
- name: 🚚 Push packages to NuGet feed (nuget.org) | |
run: ./build.sh nuget-push --nuget-feed 'https://api.nuget.org/v3/index.json' | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
- name: 🚚 Push packages to NuGet feed (github.com) | |
run: ./build.sh nuget-push --nuget-feed 'https://nuget.pkg.github.com/${{ github.repository }}/index.json' | |
env: | |
NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} |