From 508be2162c424581b58e797377c65a34b78807ec Mon Sep 17 00:00:00 2001 From: Jaime Bautista Date: Tue, 15 Apr 2025 19:06:58 -0600 Subject: [PATCH] Create release-nuget-package.yml --- .github/workflows/release-nuget-package.yml | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release-nuget-package.yml diff --git a/.github/workflows/release-nuget-package.yml b/.github/workflows/release-nuget-package.yml new file mode 100644 index 000000000..41dd4bd69 --- /dev/null +++ b/.github/workflows/release-nuget-package.yml @@ -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