Skip to content

Commit 70bdb0c

Browse files
authored
Update build-library.yml
1 parent a5f1244 commit 70bdb0c

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/build-library.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -217,28 +217,28 @@ jobs:
217217
--source MainLatest
218218
--skip-duplicate
219219
220-
# release:
221-
# needs: [ sign ]
222-
# if: ${{ startsWith(github.ref, 'refs/heads/rel/') }}
223-
# environment: nuget-release-gate
224-
# runs-on: ubuntu-latest
225-
226-
# steps:
227-
# - name: Setup .NET
228-
# uses: actions/setup-dotnet@v4
229-
# with:
230-
# dotnet-version: ${{ env.DOTNET_VERSION }}
220+
release:
221+
if: ${{ startsWith(github.ref, 'refs/heads/rel/') }}
222+
needs: [ sign ]
223+
environment: nuget-release-gate
224+
runs-on: ubuntu-latest
225+
226+
steps:
227+
- name: Setup .NET
228+
uses: actions/setup-dotnet@v4
229+
with:
230+
dotnet-version: ${{ env.DOTNET_VERSION }}
231231

232-
# - name: Download unsigned NuGet packages
233-
# uses: actions/download-artifact@v4
234-
# with:
235-
# name: nuget-signed
236-
# path: ${{ github.workspace }}/packages
237-
238-
# - name: Push signed packages to NuGet.org
239-
# run: >
240-
# dotnet nuget push
241-
# ${{ github.workspace }}/packages/**/*.nupkg
242-
# --source https://api.nuget.org/v3/index.json
243-
# --api-key ${{ secrets.NUGET_PACKAGE_PUSH_TOKEN }}
244-
# --skip-duplicate
232+
- name: Download unsigned NuGet packages
233+
uses: actions/download-artifact@v4
234+
with:
235+
name: nuget-signed
236+
path: ${{ github.workspace }}/packages
237+
238+
- name: Push signed packages to NuGet.org
239+
run: >
240+
dotnet nuget push
241+
${{ github.workspace }}/packages/**/*.nupkg
242+
--source https://api.nuget.org/v3/index.json
243+
--api-key ${{ secrets.NUGET_PACKAGE_PUSH_TOKEN }}
244+
--skip-duplicate

0 commit comments

Comments
 (0)