diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a2d0626..de2d426f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -63,13 +63,14 @@ jobs: | |||
63 | shell: cmd | 63 | shell: cmd |
64 | run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" | 64 | run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" |
65 | 65 | ||
66 | # Do NOT publish logs on `master` branch as they may contain secrets in them. | ||
66 | - name: Save logs | 67 | - name: Save logs |
67 | if: always() | 68 | if: github.ref != 'refs/heads/master' && (success() || failure()) |
68 | uses: actions/upload-artifact@v2 | 69 | uses: actions/upload-artifact@v2 |
69 | with: | 70 | with: |
70 | name: logs_${{ github.run_id }} | 71 | name: logs_${{ github.run_id }} |
71 | path: build/logs/ | 72 | path: build/logs/ |
72 | 73 | ||
73 | - name: Push to GitHub Packages | 74 | - name: Push to GitHub Packages |
74 | if: ${{ github.event_name == 'push' && github.repository_owner == 'wixtoolset' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') }} | 75 | if: github.event_name == 'push' && github.repository_owner == 'wixtoolset' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') |
75 | run: dotnet nuget push "build/artifacts/**/*.nupkg" --source https://nuget.pkg.github.com/wixtoolset/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | 76 | run: dotnet nuget push "build/artifacts/**/*.nupkg" --source https://nuget.pkg.github.com/wixtoolset/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate |