Skip to content

Commit

Permalink
Push NuGet packages when pushing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Aug 1, 2023
1 parent a7a9e49 commit e370356
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: CI
on:
push:
branches:
- main
- validate/*
- main
- validate/*
tags:
- 'v*.*'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -183,3 +185,7 @@ jobs:
name: deployables
path: ${{ runner.temp }}/_artifacts/deployables
if: always()

- name: 🚀 Push NuGet packages
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push ${{ runner.temp }}/_artifacts/deployables/*.nupkg --source https://api.nuget.org/v3/index.json -k '${{ secrets.NUGET_API_KEY }}'

0 comments on commit e370356

Please sign in to comment.