Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mizrael committed Sep 19, 2022
1 parent ed24f5c commit aed3d52
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NuGet Generation

on:
workflow_dispatch:
release:
types:
- prereleased
- released

jobs:
build:
runs-on: ubuntu-18.04
name: Update NuGet packages
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Generate NuGet packages
run: dotnet pack -c Release

- name: Push packages to registry
run: |
cd ./packages
dotnet nuget push "*.nupkg" -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json --skip-duplicate
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}

0 comments on commit aed3d52

Please sign in to comment.