Files
velopack/.github/workflows/release.yml
2024-05-24 11:54:48 +01:00

27 lines
733 B
YAML

name: Release to NuGet.org
on:
workflow_dispatch:
inputs:
workflow_run_id:
description: 'Workflow Run ID to publish'
required: true
default: ''
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: packages
run-id: ${{ github.event.inputs.workflow_run_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
path: ./packages
- name: Publish .nupkg and .snupkg files
run: |
for f in packages/*.nupkg; do
dotnet nuget push "$f" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
done