Skip to content

Commit

Permalink
Added nupkg auto-publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-abblix committed Jul 9, 2024
1 parent bcae385 commit b292a55
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI/CD with Auto Versioning

on:
workflow_dispatch:
# push:
# branches: [ master ]
workflow_dispatch: # Manual trigger
release:
types: [published] # Trigger on published releases

jobs:
get_version:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
with:
name: nuget-packages
path: nupkg
# - name: Push to NuGet.org
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
# - name: Push to GitHub Packages
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate
- name: Push to NuGet.org
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Push to GitHub Packages
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate

0 comments on commit b292a55

Please sign in to comment.