Skip to content

Commit 7f11d69

Browse files
committed
Updated NuGet pipeline to use global Nuget API Key from organisation secrets
Updated GitHub Actions to latest versions
1 parent 3ac2692 commit 7f11d69

8 files changed

+34
-34
lines changed

.github/workflows/docs-prs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
name: "Spell check"
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
name: Check out the code
28-
- uses: actions/setup-node@v1
28+
- uses: setup-node@v3
2929
name: Setup node
3030
with:
3131
node-version: "16"

.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
os: [ubuntu-latest]
3232

3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535

3636
- name: Install .NET Core 6.0.x
37-
uses: actions/setup-dotnet@v1
37+
uses: actions/setup-dotnet@v3
3838
with:
3939
dotnet-version: 6.0.x
4040

4141
- name: Install Node.js
42-
uses: actions/setup-node@v1
42+
uses: setup-node@v3
4343
with:
4444
node-version: ${{ env.node_version }}
4545

.github/workflows/on-manual-do-nuget-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818

1919
- name: Install .NET 6
20-
uses: actions/setup-dotnet@v1
20+
uses: actions/setup-dotnet@v3
2121
with:
2222
dotnet-version: ${{ env.dotnet_core_version }}
2323

@@ -27,6 +27,6 @@ jobs:
2727

2828
- name: Publish to NuGet
2929
run: |
30-
find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} --skip-duplicate \;
31-
# find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} \;
30+
find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate \;
31+
# find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} \;
3232
shell: bash

.github/workflows/on-push-do-ci-build-pg10.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
--health-retries 5
4343
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Install .NET Core 3.1.x
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v3
4949
with:
5050
dotnet-version: 3.1.x
5151

5252
- name: Install .NET Core 5.0.x
53-
uses: actions/setup-dotnet@v1
53+
uses: actions/setup-dotnet@v3
5454
with:
5555
dotnet-version: 5.0.x
5656

5757
- name: Install .NET Core 6.0.x
58-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
5959
with:
6060
dotnet-version: 6.0.x
6161

6262
- name: Install Node.js
63-
uses: actions/setup-node@v1
63+
uses: setup-node@v3
6464
with:
6565
node-version: ${{ env.node_version }}
6666

.github/workflows/on-push-do-ci-build-pg11.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
--health-retries 5
4343
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Install .NET Core 3.1.x
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v3
4949
with:
5050
dotnet-version: 3.1.x
5151

5252
- name: Install .NET Core 5.0.x
53-
uses: actions/setup-dotnet@v1
53+
uses: actions/setup-dotnet@v3
5454
with:
5555
dotnet-version: 5.0.x
5656

5757
- name: Install .NET Core 6.0.x
58-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
5959
with:
6060
dotnet-version: 6.0.x
6161

6262
- name: Install Node.js
63-
uses: actions/setup-node@v1
63+
uses: setup-node@v3
6464
with:
6565
node-version: ${{ env.node_version }}
6666

.github/workflows/on-push-do-ci-build-pg12.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
--health-retries 5
4343
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Install .NET Core 3.1.x
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v3
4949
with:
5050
dotnet-version: 3.1.x
5151

5252
- name: Install .NET Core 5.0.x
53-
uses: actions/setup-dotnet@v1
53+
uses: actions/setup-dotnet@v3
5454
with:
5555
dotnet-version: 5.0.x
5656

5757
- name: Install .NET Core 6.0.x
58-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
5959
with:
6060
dotnet-version: 6.0.x
6161

6262
- name: Install Node.js
63-
uses: actions/setup-node@v1
63+
uses: setup-node@v3
6464
with:
6565
node-version: ${{ env.node_version }}
6666

.github/workflows/on-push-do-ci-build-pg9.6.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
--health-retries 5
4343
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Install .NET Core 3.1.x
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v3
4949
with:
5050
dotnet-version: 3.1.x
5151

5252
- name: Install .NET Core 5.0.x
53-
uses: actions/setup-dotnet@v1
53+
uses: actions/setup-dotnet@v3
5454
with:
5555
dotnet-version: 5.0.x
5656

5757
- name: Install .NET Core 6.0.x
58-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
5959
with:
6060
dotnet-version: 6.0.x
6161

6262
- name: Install Node.js
63-
uses: actions/setup-node@v1
63+
uses: setup-node@v3
6464
with:
6565
node-version: ${{ env.node_version }}
6666

.github/workflows/on-push-do-ci-build-systemtextjson.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
--health-retries 5
4343
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646

4747
- name: Install .NET Core 3.1.x
48-
uses: actions/setup-dotnet@v1
48+
uses: actions/setup-dotnet@v3
4949
with:
5050
dotnet-version: 3.1.x
5151

5252
- name: Install .NET Core
53-
uses: actions/setup-dotnet@v1
53+
uses: actions/setup-dotnet@v3
5454
with:
5555
dotnet-version: 5.0.x
5656

5757
- name: Install .NET Core 6.0.x
58-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
5959
with:
6060
dotnet-version: 6.0.x
6161

6262
- name: Install Node.js
63-
uses: actions/setup-node@v1
63+
uses: setup-node@v3
6464
with:
6565
node-version: ${{ env.node_version }}
6666

0 commit comments

Comments
 (0)