+ - name: Install Github Package Registry Tool
+ if: github.event.inputs.deploy_to_gpr == 'true'
+ run: dotnet tool install --global --no-cache gpr
+
+ - name: Deploy NuGet packages to Github Packages Registry
+ if: github.event.inputs.deploy_to_gpr == 'true'
+ run: |
+ gpr push --api-key ${{ secrets.GITHUB_TOKEN }} \
+ --repository ${{ github.repository }} \
+ --retries 3 Artifacts/*.nupkg
+