Skip to content

Commit

Permalink
chore: add binaries to the release
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Jun 27, 2024
1 parent 6b74fcd commit c13d4ce
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c13d4ce

Please sign in to comment.