From c13d4ce82046a48a2a8f51114fba7733267fc012 Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Wed, 26 Jun 2024 22:36:34 -0500 Subject: [PATCH] chore: add binaries to the release --- .github/workflows/prepare.yaml | 15 +++++++++++++++ .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/.github/workflows/prepare.yaml b/.github/workflows/prepare.yaml index 77c4053..e09230e 100644 --- a/.github/workflows/prepare.yaml +++ b/.github/workflows/prepare.yaml @@ -41,3 +41,18 @@ jobs: echo "Release Notes Will be..." echo "========================" cat release-notes.md + - name: Linux 64-bit Build + env: + GOOS: linux + GOARCH: amd64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ + - name: Apple Silicon Build + env: + GOOS: darwin + GOARCH: arm64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ + - name: Apple Intel Build + env: + GOOS: darwin + GOARCH: amd64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 52168f6..c780108 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,5 +46,30 @@ jobs: cat release-notes.md - name: Create Release run: gh release create -t "v$RELEASE_VERSION" "v$RELEASE_VERSION" --draft --notes-file=release-notes.md + - name: Linux 64-bit Build + env: + GOOS: linux + GOARCH: amd64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ + - name: Apple Silicon Build + env: + GOOS: darwin + GOARCH: arm64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ + - name: Apple Intel Build + env: + GOOS: darwin + GOARCH: amd64 + run: go build -o genifest-$RELEASE_VERSION-$GOOS-$GOARCH ./ + - name: Create Release + run: gh release create -t "v$RELEASE_VERSION" "v$RELEASE_VERSION" --draft --notes-file=release-notes.md + - name: Upload Linux 64-bit Binary + run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-linux-amd64 + - name: Upload Apple Silicon Binary + run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-darwin-arm64 + - name: Upload Apple Intel Binary + run: gh release upload "v$RELEASE_VERSION" genifest-$RELEASE_VERSION-darwin-amd64 + - name: Finalize Release + run: gh release edit "v$RELEASE_VERSION" --draft=false - name: Finalize Release run: gh release edit "v$RELEASE_VERSION" --draft=false