Skip to content

Commit

Permalink
Merge branch 'release/0.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
agc93 committed Aug 25, 2020
2 parents 624ed07 + f11f1b3 commit ad11899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.101'
- name: Restore Tools
shell: bash
run: |
dotnet tool restore
- name: Run the Cake script
uses: cake-build/cake-action@v1
with:
Expand All @@ -29,6 +33,7 @@ jobs:
# verbosity: Diagnostic
env:
NUGET_TOKEN: ${{secrets.NUGET_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
name: Upload Artifacts
with:
Expand Down
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Task("Publish-NuGet-Package")
Task("Publish-GitHub-Package")
.IsDependentOn("NuGet")
.WithCriteria(() => HasEnvironmentVariable("GITHUB_REF"))
.WithCriteria(() => EnvironmentVariable("GITHUB_REF").StartsWith("refs/tags/v") || EnvironmentVariable("GITHUB_REF") == "refs/heads/develop")
.WithCriteria(() => EnvironmentVariable("GITHUB_REF").StartsWith("refs/tags/v"))
.Does(() => {
// Publish to GitHub Packages
var exitCode = 0;
Expand Down

0 comments on commit ad11899

Please sign in to comment.