From 9a6490af180c4f2f29643bd1ea84e204959c2deb Mon Sep 17 00:00:00 2001 From: Koddek Date: Fri, 6 Feb 2026 14:18:31 -0400 Subject: [PATCH 1/2] ci: add github feed and bump version --- .github/workflows/build-publish-nuget.yml | 18 ++++++++++++++++-- src/Autoredi/Autoredi.csproj | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-publish-nuget.yml b/.github/workflows/build-publish-nuget.yml index 04191b3..af9aed2 100644 --- a/.github/workflows/build-publish-nuget.yml +++ b/.github/workflows/build-publish-nuget.yml @@ -46,6 +46,15 @@ jobs: with: dotnet-version: '9.0.x' + - 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 }}" \ + --store-password-in-clear-text + - name: Create SNK file from secret run: echo "${{ secrets.SNK_FILE_BASE64 }}" | base64 --decode > ${{ github.workspace }}/Autoredi.snk @@ -56,10 +65,15 @@ jobs: echo "version=$VERSION" >> $GITHUB_OUTPUT echo "Extracted version: $VERSION" + - name: Restore Projects + run: | + dotnet restore "${{ env.MAIN_PROJECT_FILE }}" + dotnet restore "${{ env.GENERATOR_PROJECT_FILE }}" + - name: Build Projects run: | - dotnet build "${{ env.MAIN_PROJECT_FILE }}" --configuration "${{ env.CONFIGURATION }}" - dotnet build "${{ env.GENERATOR_PROJECT_FILE }}" --configuration "${{ env.CONFIGURATION }}" + dotnet build "${{ env.MAIN_PROJECT_FILE }}" --configuration "${{ env.CONFIGURATION }}" --no-restore + dotnet build "${{ env.GENERATOR_PROJECT_FILE }}" --configuration "${{ env.CONFIGURATION }}" --no-restore - name: Pack Projects run: | diff --git a/src/Autoredi/Autoredi.csproj b/src/Autoredi/Autoredi.csproj index 725b9bb..80f5b22 100644 --- a/src/Autoredi/Autoredi.csproj +++ b/src/Autoredi/Autoredi.csproj @@ -3,7 +3,7 @@ net10.0 Autoredi - 0.4.0 + 0.4.1 true true From 5c2f1a7f2966cde0261b0bc75ec4a3d39b0d733a Mon Sep 17 00:00:00 2001 From: Koddek Date: Fri, 6 Feb 2026 15:53:26 -0400 Subject: [PATCH 2/2] chore: add NuGet.config for package sources --- NuGet.config | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 NuGet.config diff --git a/NuGet.config b/NuGet.config new file mode 100644 index 0000000..4d736c1 --- /dev/null +++ b/NuGet.config @@ -0,0 +1,7 @@ + + + + + + +