Skip to content

Commit

Permalink
ci: add nuget build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zeljko-at-bunny committed Dec 18, 2023
1 parent e08fdb3 commit ca9bb9c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Release Madware.Furs'
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate release name
env:
REF_NAME: ${{ github.ref_name }}
run: |
echo "BUILD_VERSION=${REF_NAME//v/}" >> $GITHUB_ENV
echo "publish_filename=madware-furs-$REF_NAME.zip" >> $GITHUB_ENV
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/BunnyWay/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.BUNNYNET_DEVOPS_PAT }}
- name: build
run: dotnet build -c Release

- name: test
run: dotnet test -c Release --no-build --no-restore

- name: Pack Madware.Furs
run: dotnet pack -c Release --no-build --no-restore FursTax/FursTax.csproj

- name: Publish NuGet package
run: dotnet nuget push FursTax/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/BunnyWay/index.json"

0 comments on commit ca9bb9c

Please sign in to comment.