From 508be2162c424581b58e797377c65a34b78807ec Mon Sep 17 00:00:00 2001 From: Jaime Bautista Date: Tue, 15 Apr 2025 19:06:58 -0600 Subject: [PATCH 1/2] 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 From e37fa3edfc3fc70eae7cce41fb86afe38f37d190 Mon Sep 17 00:00:00 2001 From: Jaime Bautista Date: Tue, 15 Apr 2025 19:20:31 -0600 Subject: [PATCH 2/2] Update release-nuget-package.yml --- .github/workflows/release-nuget-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-nuget-package.yml b/.github/workflows/release-nuget-package.yml index 41dd4bd69..eb97c68ec 100644 --- a/.github/workflows/release-nuget-package.yml +++ b/.github/workflows/release-nuget-package.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-dotnet@v3 with: - dotnet-version: '6' + dotnet-version: '8' source-url: https://nuget.pkg.github.com/tigertext/index.json env: NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}