Skip to content

Commit 6910fc7

Browse files
authored
Added NuGet publish (#14)
1 parent 25d3a06 commit 6910fc7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
pull_request:
1212
branches:
1313
- main
14+
- release
1415
paths-ignore:
1516
- '**/*.md'
1617
- '**/*.gitignore'
@@ -74,8 +75,12 @@ jobs:
7475
echo "PKG_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
7576
echo "RELNOTES=$relnotes" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
7677
78+
- name: Push to NuGet
79+
if: ${{ github.ref == 'refs/heads/release' }}
80+
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
81+
7782
- name: Tag and Release
78-
if: ${{ github.event_name != 'pull_request' }}
83+
if: ${{ github.ref == 'refs/heads/release' && github.event_name != 'pull_request' }}
7984
id: tag_release
8085
uses: softprops/action-gh-release@v0.1.13
8186
with:

0 commit comments

Comments
 (0)