Skip to content

Commit 4f27520

Browse files
committed
updated ci
1 parent 510771b commit 4f27520

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET Core
1+
name: Build .NET Library
22

33
on:
44
push:
@@ -23,17 +23,23 @@ jobs:
2323
run: dotnet build --configuration Release --no-restore
2424
- name: Test
2525
run: dotnet test --no-restore --verbosity normal
26-
- name: Pack NuGet
27-
uses: brandedoutcast/publish-nuget@v2.5.5
28-
with:
29-
# Filepath of the project to be packaged, relative to root of repository
30-
PROJECT_FILE_PATH: src/QAToolKit.Engine.Bombardier/QAToolKit.Engine.Bombardier.csproj
31-
VERSION_FILE_PATH: Directory.Build.props
32-
#NUGET_KEY: ${{secrets.NUGET_API_KEY}}
3326
- name: Upload a Build Artifact
3427
uses: actions/upload-artifact@v2.2.0
3528
with:
3629
# Artifact name
3730
name: qatoolkit-engine-bombardier.zip
3831
# A file, directory or wildcard pattern that describes what to upload
3932
path: src/QAToolKit.Engine.Bombardier/bin/
33+
deploy:
34+
needs: build
35+
if: github.event_name == 'release'
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Pack NuGet
40+
uses: brandedoutcast/publish-nuget@v2.5.5
41+
with:
42+
# Filepath of the project to be packaged, relative to root of repository
43+
PROJECT_FILE_PATH: src/QAToolKit.Engine.Bombardier/QAToolKit.Engine.Bombardier.csproj
44+
VERSION_FILE_PATH: Directory.Build.props
45+
#NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)