Skip to content

Commit

Permalink
release stataically-built binary with _static postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Oct 28, 2024
1 parent 342a327 commit e4c4452
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ jobs:
mv initiad initia_${VERSION}/
tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}.tar.gz initia_${VERSION}
- name: Static Build for Linux AMD64
run: |
export GOARCH=${GOARCH}
export GOOS=${GOOS}
make build-linux
cd ./build
mkdir -p initia_${VERSION}
mv initiad initia_${VERSION}/
tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}_static.tar.gz initia_${VERSION}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./build/initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz
./build/initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}_static.tar.gz
env:
Version: ${{ env.VERSION }}
ARCH_NAME: ${{ env.ARCH_NAME }}

0 comments on commit e4c4452

Please sign in to comment.