From 0bcfb91c38040e5213b2ccf15aedd2d9a1bfae2a Mon Sep 17 00:00:00 2001 From: Blaise Taylor Date: Mon, 2 Feb 2026 08:36:48 -0500 Subject: [PATCH 1/3] AB#12 Publish to NuGet using Trusted Publishing --- .github/workflows/release.yml | 13 +++++++++++-- Directory.Build.props | 12 ------------ ...Builder.ComponentModel.Design.Serialization.slnx | 1 - ...ilder.ComponentModel.Design.Serialization.csproj | 9 ++++++++- 4 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 Directory.Build.props diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c9de0c..0880190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,13 +62,22 @@ jobs: env: NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: NuGet login + uses: NuGet/login@v1 + id: nuget_login + with: + user: ${{ secrets.NUGET_USER }} + - name: Restore dependencies run: dotnet restore - name: Build project run: dotnet build --no-restore --configuration Release - - name: Publish to GitHub Packages + - name: Publish Packages run: | dotnet pack --configuration Release --no-build -o ./nupkg - dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} + dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source ${{ env.NUGET_URL }} --api-key ${{ steps.nuget_login.outputs.NUGET_API_KEY }} + env: + NUGET_URL: 'https://api.nuget.org/v3/index.json' \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props deleted file mode 100644 index 9d20bd8..0000000 --- a/Directory.Build.props +++ /dev/null @@ -1,12 +0,0 @@ - - - BlaiseD - latest - true - $(NoWarn);1701;1702;1591 - true - true - snupkg - true - - diff --git a/LogicBuilder.ComponentModel.Design.Serialization.slnx b/LogicBuilder.ComponentModel.Design.Serialization.slnx index c17b4f8..f490f97 100644 --- a/LogicBuilder.ComponentModel.Design.Serialization.slnx +++ b/LogicBuilder.ComponentModel.Design.Serialization.slnx @@ -3,7 +3,6 @@ - diff --git a/LogicBuilder.ComponentModel.Design.Serialization/LogicBuilder.ComponentModel.Design.Serialization.csproj b/LogicBuilder.ComponentModel.Design.Serialization/LogicBuilder.ComponentModel.Design.Serialization.csproj index 2320b35..15124f5 100644 --- a/LogicBuilder.ComponentModel.Design.Serialization/LogicBuilder.ComponentModel.Design.Serialization.csproj +++ b/LogicBuilder.ComponentModel.Design.Serialization/LogicBuilder.ComponentModel.Design.Serialization.csproj @@ -3,7 +3,14 @@ netstandard2.0 LogicBuilder.ComponentModel.Design.Serialization - BlaiseD + BlaiseD + latest + true + $(NoWarn);1701;1702;1591 + true + true + snupkg + true LogicBuilder.ComponentModel.Design.Serialization Implements DesignerSerializationManager for .NetStandard. false From 2e86bd83ca5545a6df608deade98238d019e70a4 Mon Sep 17 00:00:00 2001 From: Blaise Taylor Date: Mon, 2 Feb 2026 08:38:36 -0500 Subject: [PATCH 2/3] AB#12 minor --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0880190..2932318 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,4 +80,4 @@ jobs: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source ${{ env.NUGET_URL }} --api-key ${{ steps.nuget_login.outputs.NUGET_API_KEY }} env: - NUGET_URL: 'https://api.nuget.org/v3/index.json' \ No newline at end of file + NUGET_URL: 'https://api.nuget.org/v3/index.json' From 1f5384dc1f9338bf8fc8b860e3eef5e35704cbe6 Mon Sep 17 00:00:00 2001 From: Blaise Taylor Date: Mon, 2 Feb 2026 08:52:24 -0500 Subject: [PATCH 3/3] AB#12 Enable GitHub OIDC token issuanc --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2932318..8c932d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: permissions: contents: read packages: write + id-token: write env: DOTNET_VERSION: "10.0.x"