From c6941c6591b8b68729cd17e4e02537c89b158834 Mon Sep 17 00:00:00 2001 From: "Zwikstra, Hanno (RB-NL)" Date: Sun, 17 May 2026 20:02:40 +0200 Subject: [PATCH 1/5] fix: update NuGet publishing process and add beta package workflow --- .github/workflows/package-beta.yml | 26 +++++++++++++++++++++++++ .github/workflows/package-main.yml | 9 ++++----- source/Lexicala.NET/Lexicala.NET.csproj | 2 +- 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/package-beta.yml diff --git a/.github/workflows/package-beta.yml b/.github/workflows/package-beta.yml new file mode 100644 index 0000000..ef7bffb --- /dev/null +++ b/.github/workflows/package-beta.yml @@ -0,0 +1,26 @@ +name: Publish Beta Package + +on: + workflow_dispatch: + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + - name: Install dependencies + run: dotnet restore ./source/Lexicala.NET.slnx + - name: Build + run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore + - name: Test + run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal + - name: Pack + run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --version-suffix "beta.${{ github.run_number }}" --output ./artifacts + - name: Publish to NuGet + run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file diff --git a/.github/workflows/package-main.yml b/.github/workflows/package-main.yml index 5b0acd7..02c4f21 100644 --- a/.github/workflows/package-main.yml +++ b/.github/workflows/package-main.yml @@ -22,8 +22,7 @@ jobs: run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore - name: Test run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal - - name: Publish to Nuget - uses: alirezanet/publish-nuget@v3.0.4 - with: - PROJECT_FILE_PATH: ./source/Lexicala.NET/Lexicala.NET.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} + - name: Pack + run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --output ./artifacts + - name: Publish to NuGet + run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/source/Lexicala.NET/Lexicala.NET.csproj b/source/Lexicala.NET/Lexicala.NET.csproj index debe416..78644f3 100644 --- a/source/Lexicala.NET/Lexicala.NET.csproj +++ b/source/Lexicala.NET/Lexicala.NET.csproj @@ -17,7 +17,7 @@ A .NET client for the Lexicala api. See readme file on project page for further details. - 3.1.0 + 3.2.0 latest From b2105cd5b24e9bc6733aa9a0b40143ddb9b6b32d Mon Sep 17 00:00:00 2001 From: "Zwikstra, Hanno (RB-NL)" Date: Sun, 17 May 2026 20:18:22 +0200 Subject: [PATCH 2/5] fix: update paths-ignore in workflow files to exclude .github directory --- .github/workflows/build-on-push.yml | 2 +- .github/workflows/build-test_pull-request.yml | 2 +- .github/workflows/package-main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-on-push.yml b/.github/workflows/build-on-push.yml index f39e0f7..0774443 100644 --- a/.github/workflows/build-on-push.yml +++ b/.github/workflows/build-on-push.yml @@ -2,7 +2,7 @@ name: Build & Test on: push: - paths-ignore: ['**.md'] + paths-ignore: ['**.md', '.github/**'] # don't run on master because we already have another action for that branches-ignore: [master] diff --git a/.github/workflows/build-test_pull-request.yml b/.github/workflows/build-test_pull-request.yml index f37afba..64a89e4 100644 --- a/.github/workflows/build-test_pull-request.yml +++ b/.github/workflows/build-test_pull-request.yml @@ -3,7 +3,7 @@ name: Build & Test on: pull_request: branches: [ master ] - + paths-ignore: ['**.md', '.github/**'] jobs: build: diff --git a/.github/workflows/package-main.yml b/.github/workflows/package-main.yml index 02c4f21..372ceaf 100644 --- a/.github/workflows/package-main.yml +++ b/.github/workflows/package-main.yml @@ -3,7 +3,7 @@ name: Build Test Package on: push: branches: [ master ] - paths-ignore: ['**.md'] + paths-ignore: ['**.md', '.github/**'] jobs: build: From 9e9ef87e3f17baa1d31a414f07c233552d114e69 Mon Sep 17 00:00:00 2001 From: Hanno Zwikstra Date: Sun, 17 May 2026 20:14:05 +0200 Subject: [PATCH 3/5] Create beta-package.yml --- .github/workflows/beta-package.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/beta-package.yml diff --git a/.github/workflows/beta-package.yml b/.github/workflows/beta-package.yml new file mode 100644 index 0000000..567903d --- /dev/null +++ b/.github/workflows/beta-package.yml @@ -0,0 +1,26 @@ +name: Publish Beta Package + +on: + workflow_dispatch: + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + - name: Install dependencies + run: dotnet restore ./source/Lexicala.NET.slnx + - name: Build + run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore + - name: Test + run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal + - name: Pack + run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --version-suffix "beta.${{ github.run_number }}" --output ./artifacts + - name: Publish to NuGet + run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json From a1d8c1754e149005618634d60d641be3dbc30a9b Mon Sep 17 00:00:00 2001 From: "Zwikstra, Hanno (RB-NL)" Date: Sun, 17 May 2026 20:23:51 +0200 Subject: [PATCH 4/5] fix: rename workflow to clarify it is for pull requests --- .github/workflows/build-test_pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test_pull-request.yml b/.github/workflows/build-test_pull-request.yml index 64a89e4..76de43d 100644 --- a/.github/workflows/build-test_pull-request.yml +++ b/.github/workflows/build-test_pull-request.yml @@ -1,4 +1,4 @@ -name: Build & Test +name: Build & Test Pull Request on: pull_request: From 85e549da4671d110b00fe76c69265195bb0f2a0b Mon Sep 17 00:00:00 2001 From: Hanno Zwikstra Date: Sun, 17 May 2026 20:19:52 +0200 Subject: [PATCH 5/5] Delete .github/workflows/package-beta.yml --- .github/workflows/package-beta.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/package-beta.yml diff --git a/.github/workflows/package-beta.yml b/.github/workflows/package-beta.yml deleted file mode 100644 index ef7bffb..0000000 --- a/.github/workflows/package-beta.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Publish Beta Package - -on: - workflow_dispatch: - -jobs: - build: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 10.0.x - - name: Install dependencies - run: dotnet restore ./source/Lexicala.NET.slnx - - name: Build - run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore - - name: Test - run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal - - name: Pack - run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --version-suffix "beta.${{ github.run_number }}" --output ./artifacts - - name: Publish to NuGet - run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file