Skip to content

Commit

Permalink
build(github actions): specify build targets explicitly and provide t…
Browse files Browse the repository at this point in the history
…ar.gz archive
  • Loading branch information
jlundan committed Feb 1, 2025
1 parent 8f103a9 commit a00ea99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
go-version: '>=1.22'

- name: Build Binary
run: go build -ldflags "-X main.version=${{ github.ref_name }}" -o ./bin/journeys.api cmd/journeys/journeys.go
run: |
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${{ github.ref_name }}" -o ./journeys.api-linux-amd64 cmd/journeys/journeys.go
tar -czf journeys.api-linux-amd64.tar.gz ./journeys.api-linux-amd64
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: |
./bin/journeys.api
./journeys.api-linux-amd64
./journeys.api-linux-amd64.tar.gz

0 comments on commit a00ea99

Please sign in to comment.