Fix automated workflow for pull requests

This commit is contained in:
Lucas Girouard-Stranks
2020-12-14 19:21:08 -05:00
committed by GitHub
parent 541e162887
commit 4d0a9e1ffa
+6 -7
View File
@@ -10,13 +10,12 @@ env:
on:
push:
branches: [master, develop]
branches: [develop]
tags: [v*]
pull_request:
branches: [master, develop]
repository_dispatch:
#HACK: This allows to re-run the workflow from an external API call; useful for testing/debugging the workflow without having to commit a change in a branch
types: [run]
branches: [develop]
pull_request_target:
branches: [develop]
jobs:
@@ -95,7 +94,7 @@ jobs:
sudo fc-cache -f -v
sudo fc-match Arial
- name: "Install dependencies"
- name: "Download NuGet packages"
run: dotnet restore '${{ env.SOLUTION_PATH }}' --verbosity quiet
- name: "Build solution"
@@ -139,4 +138,4 @@ jobs:
run: dotnet nuget add source $MYGET_SOURCE_URL --name "MyGet"
- name: "Upload Packages: MyGet"
run: dotnet nuget push "./**/*.nupkg" --source "MyGet" --skip-duplicate --api-key $MYGET_ACCESS_TOKEN
run: dotnet nuget push "./**/*.nupkg" --source "MyGet" --skip-duplicate --api-key $MYGET_ACCESS_TOKEN