Skip to content

Commit e8f278c

Browse files
author
bbeversdorf
authored
Update deploy.yml
1 parent 769599e commit e8f278c

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
name: Deploy
22

33
on:
4-
workflow_dispatch:
4+
release:
5+
types: [published]
56

67
jobs:
78
deploy:
89
runs-on: ubuntu-latest
9-
1010
steps:
11-
- uses: actions/checkout@v2
12-
with:
13-
fetch-depth: 0
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
1414

15-
- name: Setup .NET
16-
uses: actions/setup-dotnet@v1
17-
with:
18-
dotnet-version: 6.0.x
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: |
19+
3.1.x
20+
6.0.x
21+
7.0.x
1922
20-
- name: Deploy to NuGet
21-
env:
22-
FLOAT_NUGET_TOKEN: ${{ secrets.FLOAT_NUGET_TOKEN }}
23-
run: ./build.sh --task=Deploy --configuration=Release --nugetUrl="https://api.nuget.org/v3/index.json" --nugetToken="${FLOAT_NUGET_TOKEN}"
23+
- name: Deploy to NuGet
24+
env:
25+
FLOAT_NUGET_TOKEN: ${{ secrets.FLOAT_NUGET_TOKEN }}
26+
run: ./build.sh --task=Deploy --configuration=Release --nugetUrl="https://api.nuget.org/v3/index.json" --nugetToken="${FLOAT_NUGET_TOKEN}"

0 commit comments

Comments
 (0)