diff --git a/.github/workflows/build-publish-nuget.yml b/.github/workflows/build-publish-nuget.yml index af9aed2..eb212f3 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' @@ -46,13 +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 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 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