diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-03-02 09:07:44 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-03-02 10:10:12 -0800 |
| commit | 8bd6ae43c8e79bf8e715f4857b4ae9a7ba388596 (patch) | |
| tree | 906963adda769a85bf189fb82ab011e5b8095849 | |
| parent | c3c013843a82126f52f0247eed5667ae090712a1 (diff) | |
| download | wix-8bd6ae43c8e79bf8e715f4857b4ae9a7ba388596.tar.gz wix-8bd6ae43c8e79bf8e715f4857b4ae9a7ba388596.tar.bz2 wix-8bd6ae43c8e79bf8e715f4857b4ae9a7ba388596.zip | |
Do NOT publish logs on `master` branch as they may contain secrets
| -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 |
