Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release-nuget-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release-nuget-package

on:
push:
tags:
- "[0-999]+.[0-999]+.[0-999]"
- "[0-999]+.[0-999]+.[0-999]+-*"

jobs:
build:
runs-on: ubuntu-latest
name: Update NuGet package
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6'
source-url: https://nuget.pkg.github.com/tigertext/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- run: dotnet build
- name: Create the package
run: dotnet pack --configuration Release /p:Version=${PACKAGE_VERSION}
- name: Publish the package to GPR
run: dotnet nuget push ./bin/Release/*.nupkg
Loading