From 52c07aa212a93d233ee4154f4b5c8dc1308820e5 Mon Sep 17 00:00:00 2001 From: Koddek Date: Fri, 6 Feb 2026 16:25:48 -0400 Subject: [PATCH 1/3] ci: only add github packages source for non-pr builds --- .github/workflows/build-publish-nuget.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build-publish-nuget.yml b/.github/workflows/build-publish-nuget.yml index af9aed2..744928f 100644 --- a/.github/workflows/build-publish-nuget.yml +++ b/.github/workflows/build-publish-nuget.yml @@ -12,14 +12,6 @@ on: - 'README.md' - 'LICENSE' - '.github/workflows/build-publish-nuget.yml' - pull_request: - paths: - - 'src/**' - - 'Directory.Build.*' - - 'Autoredi.sln' - - 'README.md' - - 'LICENSE' - - '.github/workflows/build-publish-nuget.yml' env: MAIN_PROJECT_FILE: 'src/Autoredi/Autoredi.csproj' @@ -47,6 +39,7 @@ jobs: dotnet-version: '9.0.x' - name: Add GitHub Packages source + if: github.event_name != 'pull_request' run: | dotnet nuget remove source github || true dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ From 2f3f5034aabac8d78f94f97bc9cb4e050700a13a Mon Sep 17 00:00:00 2001 From: Koddek Date: Fri, 6 Feb 2026 16:27:44 -0400 Subject: [PATCH 2/3] ci: require github packages token for flowgen --- .github/workflows/build-publish-nuget.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish-nuget.yml b/.github/workflows/build-publish-nuget.yml index 744928f..eb212f3 100644 --- a/.github/workflows/build-publish-nuget.yml +++ b/.github/workflows/build-publish-nuget.yml @@ -38,14 +38,19 @@ jobs: with: dotnet-version: '9.0.x' + - name: Ensure GitHub Packages token + if: secrets.GH_PACKAGES_TOKEN == '' + run: | + echo "Missing GH_PACKAGES_TOKEN (PAT with read:packages). Configure it in repo secrets." + exit 1 + - name: Add GitHub Packages source - if: github.event_name != 'pull_request' run: | dotnet nuget remove source github || true dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ --name github \ --username "${{ github.actor }}" \ - --password "${{ secrets.GITHUB_TOKEN }}" \ + --password "${{ secrets.GH_PACKAGES_TOKEN }}" \ --store-password-in-clear-text - name: Create SNK file from secret From 63363c4b0452ae3c66bf7ffbe40a356c7d177eec Mon Sep 17 00:00:00 2001 From: Koddek Date: Fri, 6 Feb 2026 16:35:52 -0400 Subject: [PATCH 3/3] bump version to 0.4.2 --- src/Autoredi/Autoredi.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoredi/Autoredi.csproj b/src/Autoredi/Autoredi.csproj index 80f5b22..ef20446 100644 --- a/src/Autoredi/Autoredi.csproj +++ b/src/Autoredi/Autoredi.csproj @@ -3,7 +3,7 @@ net10.0 Autoredi - 0.4.1 + 0.4.2 true true