From c1b0b2a334ae058d0d180653908212118daf424e Mon Sep 17 00:00:00 2001 From: Blaise Taylor Date: Thu, 5 Feb 2026 11:05:19 -0500 Subject: [PATCH] AB#16 Publishing to MuGet --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 16 ++++++++-------- .../ComponentModel/AssemblyRef.cs | 2 +- ....Workflow.ComponentModel.Serialization.csproj | 2 +- Release_Pack_Push.ps1 | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afb2d77..9f024d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [ master ] permissions: - contents: write + contents: read packages: write env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 769b4af..9188267 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,9 @@ on: types: [published] permissions: - contents: write + contents: read packages: write - # id-token: write + id-token: write env: DOTNET_VERSION: "10.0.x" @@ -63,11 +63,11 @@ jobs: env: NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # - name: NuGet login - # uses: NuGet/login@v1 - # id: nuget_login - # with: - # user: ${{ secrets.NUGET_USER }} + - name: NuGet login + uses: NuGet/login@v1 + id: nuget_login + with: + user: ${{ secrets.NUGET_USER }} - name: Restore dependencies run: dotnet restore @@ -87,4 +87,4 @@ jobs: REPO_OWNER: ${{ github.repository_owner }} NUGET_URL: 'https://api.nuget.org/v3/index.json' GITHUB_NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # NUGET_API_KEY: ${{ steps.nuget_login.outputs.NUGET_API_KEY }} + NUGET_API_KEY: ${{ steps.nuget_login.outputs.NUGET_API_KEY }} diff --git a/LogicBuilder.Workflow.ComponentModel.Serialization/ComponentModel/AssemblyRef.cs b/LogicBuilder.Workflow.ComponentModel.Serialization/ComponentModel/AssemblyRef.cs index c86381f..622a4a5 100644 --- a/LogicBuilder.Workflow.ComponentModel.Serialization/ComponentModel/AssemblyRef.cs +++ b/LogicBuilder.Workflow.ComponentModel.Serialization/ComponentModel/AssemblyRef.cs @@ -19,6 +19,6 @@ public class AssemblyRef { public const string ActivitiesAssemblyRef = "LogicBuilder.Workflow.Activities.Rules, Version=2.0.0.0, Culture=neutral, PublicKeyToken=646893bec0268535"; public const string DialogAssemblyRef = "LogicBuilder.Workflow.Activities.Rules.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=646893bec0268535"; - public const string SystemCore = "System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"; + public const string SystemCore = "System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"; } } diff --git a/LogicBuilder.Workflow.ComponentModel.Serialization/LogicBuilder.Workflow.ComponentModel.Serialization.csproj b/LogicBuilder.Workflow.ComponentModel.Serialization/LogicBuilder.Workflow.ComponentModel.Serialization.csproj index 1a6fc92..9e613c9 100644 --- a/LogicBuilder.Workflow.ComponentModel.Serialization/LogicBuilder.Workflow.ComponentModel.Serialization.csproj +++ b/LogicBuilder.Workflow.ComponentModel.Serialization/LogicBuilder.Workflow.ComponentModel.Serialization.csproj @@ -14,7 +14,7 @@ true Manages serialization of rule sets for .NetStandard. false - Refactoring to accelrate DevOps. + Refactoring to accelerate DevOps. rules serialization Copyright © Microsoft 2017 https://github.com/BpsLogicBuilder/LogicBuilder.Workflow.ComponentModel.Serialization diff --git a/Release_Pack_Push.ps1 b/Release_Pack_Push.ps1 index d3e345a..798e0d1 100644 --- a/Release_Pack_Push.ps1 +++ b/Release_Pack_Push.ps1 @@ -8,5 +8,5 @@ if ($Env:REPO_OWNER -ne "BpsLogicBuilder") { } else { dotnet pack --configuration Release -o ./nupkg --no-build dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key $Env:GITHUB_NUGET_AUTH_TOKEN - # dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY + dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY }