From da07324779854fda8bff4bd45452a04ce5e68a1e Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Sun, 28 Mar 2021 21:38:28 -0700 Subject: [PATCH] CI: Add snapshot artifacts to PR builds (#574) * Feat: Add snapshot artifacts to PR builds * Separate Artifacts to keep file size down * Name the tasks --- .github/workflows/push.yml | 17 +++++++++++++++-- .goreleaser.yml | 2 -- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9d46e43..b18f48d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -41,8 +41,21 @@ jobs: with: version: latest args: release --snapshot --rm-dist - env: - SNAPSHOT_VERSION: "v0.0.0" + - name: Capture Linux Binary + uses: actions/upload-artifact@v2 + with: + name: act-linux + path: dist/act_linux_amd64/act + - name: Capture Windows Binary + uses: actions/upload-artifact@v2 + with: + name: act-windows + path: dist/act_windows_amd64/act.exe + - name: Capture MacOS Binary + uses: actions/upload-artifact@v2 + with: + name: act-macos + path: dist/act_darwin_amd64/act release: name: Release diff --git a/.goreleaser.yml b/.goreleaser.yml index 3f56344..3cac99a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,8 +13,6 @@ builds: - 386 checksum: name_template: 'checksums.txt' -snapshot: - name_template: "{{ .Env.SNAPSHOT_VERSION }}" archives: - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}' replacements: