Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JayArrowz authored Jan 26, 2021
1 parent c7e2093 commit 53f1055
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: Nuget Publish
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
release:
types: [ published ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -24,12 +24,12 @@ jobs:
with:
dotnet-version: 5.0.x
- run: dotnet build
- run: dotnet pack -c Release
- run: dotnet pack -c Release -o packed /p:Version=${{ github.event.release.tag_name }}
- name: Setup NuGet.exe for use with actions
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@04b0c2b8d1b97922f67eca497d7cf0bf17b8ffe1
uses: NuGet/[email protected]
with:
# NuGet version to install. Can be `latest`, `preview`, a concrete version like `5.3.1`, or a semver range specifier like `5.x`.
nuget-api-key: ${{ secrets.NUGET_KEY }}
- run: nuget push **/obj/Release/**/**.nupkg
- run: nuget push packed/**.nupkg

0 comments on commit 53f1055

Please sign in to comment.