Skip to content

Commit 59eade9

Browse files
committed
ci: workflows
1 parent 7619559 commit 59eade9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build-branch:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-20.04
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v1

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build-publish-dev:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v1

.github/workflows/production.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v1
1414
- name: Setup .NET Core
1515
uses: actions/setup-dotnet@v1
16+
with:
17+
source-url: https://api.nuget.org/v3/index.json
18+
env:
19+
NUGET_AUTH_TOKEN: ${{secrets.NUGET_DEPLOY_KEY}}
1620
- name: Build
1721
run: dotnet build -c Release
1822
- name: Pack artifacts
@@ -23,4 +27,4 @@ jobs:
2327
name: nupkg
2428
path: artifacts/*
2529
- name: Publish to NuGet
26-
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json
30+
run: dotnet nuget push "artifacts/*.nupkg"

0 commit comments

Comments
 (0)