Skip to content

📮 NuGet

📮 NuGet #79

Workflow file for this run

name: "📮 NuGet"
on:
workflow_run:
workflows: ["🔄 CI"]
branches: ["v[1-9]+.[0-9]+.[0-9]"]
types: ["completed"]
jobs:
publish:
name: 📦 Publish to NuGet
if: >
${{ github.event.workflow_run.conclusion == 'success'
&& github.event.workflow_run.event == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: dawidd6/action-download-artifact@v2
with:
workflow: ci.yml
name: nuget-packages
- name: 🔨 Use .NET Core 7.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
- name: 🎁 Push to NuGet
run: >
dotnet nuget push **/Tethos.*.nupkg
--source ${{ secrets.NUGET_FEED }}
--api-key ${{ secrets.NUGET_API_KEY }}
--skip-duplicate