forked from urossavelj/MadWare.Furs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e08fdb3
commit ca9bb9c
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |