Push preview packages #213
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: Push preview packages | |
on: | |
workflow_run: | |
types: [completed] | |
workflows: [Pack] | |
workflow_call: | |
secrets: | |
PUSH_TO_PACKAGES_PAT: | |
required: true | |
DOWNLOAD_ARTIFACTS_PAT: | |
required: true | |
jobs: | |
push: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8 | |
with: | |
name: NuGetPackages | |
github-token: ${{ secrets.DOWNLOAD_ARTIFACTS_PAT }} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Push NuGet packages to GitHub packages | |
run: dotnet nuget push **/${{ github.event.repository.name }}.*.nupkg | |
--source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | |
--api-key ${{ secrets.PUSH_TO_PACKAGES_PAT }} | |
--no-symbols | |
--skip-duplicate |