Skip to content

Push preview packages #214

Push preview packages

Push preview packages #214

Workflow file for this run

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