Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO committed Mar 13, 2024
1 parent 91b11f5 commit 755befa
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/release-hgctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,29 @@ on:
jobs:
release-hgctl:
runs-on: ubuntu-latest
env:
HGCTL_VERSION: ${GITHUB_REF#refs/*/}
steps:
- uses: actions/checkout@v3

- name: Build hgctl latest multiarch binaries
run: |
run: |
GOPROXY="https://proxy.golang.org,direct" make build-hgctl-multiarch
tar -zcvf hgctl_${{ github.ref }}_linux_amd64.tar.gz out/linux_amd64/
tar -zcvf hgctl_${{ github.ref }}_linux_arm64.tar.gz out/linux_arm64/
tar -zcvf hgctl_${{ github.ref }}_darwin_amd64.tar.gz out/darwin_amd64/
tar -zcvf hgctl_${{ github.ref }}_darwin_arm64.tar.gz out/darwin_arm64/
zip -q -r hgctl_${{ github.ref }}_windows_amd64.zip out/windows_amd64/
zip -q -r hgctl_${{ github.ref }}_windows_arm64.zip out/windows_arm64/
tar -zcvf hgctl_${{ env.HGCTL_VERSION }}_linux_amd64.tar.gz out/linux_amd64/
tar -zcvf hgctl_${{ env.HGCTL_VERSION }}_linux_arm64.tar.gz out/linux_arm64/
tar -zcvf hgctl_${{ env.HGCTL_VERSION }}_darwin_amd64.tar.gz out/darwin_amd64/
tar -zcvf hgctl_${{ env.HGCTL_VERSION }}_darwin_arm64.tar.gz out/darwin_arm64/
zip -q -r hgctl_${{ env.HGCTL_VERSION }}_windows_amd64.zip out/windows_amd64/
zip -q -r hgctl_${{ env.HGCTL_VERSION }}_windows_arm64.zip out/windows_arm64/
- name: Recreate the Latest Release and Tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
hgctl_${{ github.ref }}_linux_amd64.tar.gz
hgctl_${{ github.ref }}_linux_arm64.tar.gz
hgctl_${{ github.ref }}_darwin_amd64.tar.gz
hgctl_${{ github.ref }}_darwin_arm64.tar.gz
hgctl_${{ github.ref }}_windows_amd64.zip
hgctl_${{ github.ref }}_windows_arm64.zip
hgctl_${{ env.HGCTL_VERSION }}_linux_amd64.tar.gz
hgctl_${{ env.HGCTL_VERSION }}_linux_arm64.tar.gz
hgctl_${{ env.HGCTL_VERSION }}_darwin_amd64.tar.gz
hgctl_${{ env.HGCTL_VERSION }}_darwin_arm64.tar.gz
hgctl_${{ env.HGCTL_VERSION }}_windows_amd64.zip
hgctl_${{ env.HGCTL_VERSION }}_windows_arm64.zip

0 comments on commit 755befa

Please sign in to comment.