From 1c0e239cc3154ff4343173fda04435beeb782915 Mon Sep 17 00:00:00 2001 From: Alistair Chapman Date: Tue, 25 Aug 2020 17:29:21 +1000 Subject: [PATCH 1/2] Add tool restore to Actions build --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ece92f..c14d813 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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: From f11f1b3e1152b75eb299ed501b34a77452acd114 Mon Sep 17 00:00:00 2001 From: Alistair Chapman Date: Tue, 25 Aug 2020 17:42:07 +1000 Subject: [PATCH 2/2] Minor update to build script --- build.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cake b/build.cake index 8ca36cc..0bc54aa 100644 --- a/build.cake +++ b/build.cake @@ -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;