Skip to content

Commit 78e7762

Browse files
authored
Add nuget publish to CI (#124)
Thanks to 6pak for the script.
1 parent af69e0f commit 78e7762

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ jobs:
4949
token: ${{ secrets.GITHUB_TOKEN }}
5050
files: |
5151
./Harmony/bin/Release/HarmonyX.${{ steps.get_version.outputs.version_num }}.nupkg
52+
53+
- name: Publish
54+
env:
55+
NUGET_SOURCE: 'nuget.org'
56+
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}
57+
run: |
58+
dotnet nuget push --skip-duplicate "./Harmony/bin/Release/HarmonyX.*.nupkg" \
59+
--source "$NUGET_SOURCE" --api-key "$NUGET_API_KEY"

0 commit comments

Comments
 (0)