Skip to content

Commit

Permalink
Updated NuGet pipeline to use global Nuget API Key from organisation …
Browse files Browse the repository at this point in the history
…secrets

Updated GitHub Actions to latest versions
  • Loading branch information
oskardudycz committed Nov 9, 2022
1 parent 3ac2692 commit 7f11d69
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
name: "Spell check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Check out the code
- uses: actions/setup-node@v1
- uses: setup-node@v3
name: Setup node
with:
node-version: "16"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-manual-do-nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install .NET 6
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.dotnet_core_version }}

Expand All @@ -27,6 +27,6 @@ jobs:

- name: Publish to NuGet
run: |
find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} --skip-duplicate \;
# find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} \;
find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate \;
# find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} \;
shell: bash
10 changes: 5 additions & 5 deletions .github/workflows/on-push-do-ci-build-pg10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Install .NET Core 5.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-push-do-ci-build-pg11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Install .NET Core 5.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-push-do-ci-build-pg12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Install .NET Core 5.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-push-do-ci-build-pg9.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Install .NET Core 5.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-push-do-ci-build-systemtextjson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install .NET Core 3.1.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x

- name: Install .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x

- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Node.js
uses: actions/setup-node@v1
uses: setup-node@v3
with:
node-version: ${{ env.node_version }}

Expand Down

0 comments on commit 7f11d69

Please sign in to comment.