Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
replace publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell authored Sep 29, 2023
1 parent ce1a8cd commit 4f7be49
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ on:
types: [ published ]

jobs:
deploy:
secrets: inherit
uses: dragonfruitnetwork/workflows/.github/workflows/nuget-publish.yml@master
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build -c Release -v normal -p:Version=${{ github.ref_name }}

- name: Pack (Beta)
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:PackageVersion=${{ github.ref_name }}-beta
if: "github.event.release.prerelease"

- name: Pack (Stable)
run: dotnet pack -c Release --include-symbols --no-build -v normal -o . -p:PackageVersion=${{ github.ref_name }}
if: "!github.event.release.prerelease"

- name: Publish
run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_KEY }} --skip-duplicate -s https://api.nuget.org/v3/index.json

0 comments on commit 4f7be49

Please sign in to comment.