Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook committed Sep 17, 2022
1 parent 73706f3 commit 70c29f0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
release:
types: [created]

jobs:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get version
run: |
echo "GIT_TAG=$(git tag --sort=-version:refname | head -n 1)" >> $GITHUB_ENV
- uses: wangyoucao577/go-release-action@v1.30
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
binary_name: whalewall
pre_command: export CGO_ENABLED=0
build_flags: -buildmode=pie -trimpath
ldflags: -w -s -X main.version=${{ env.GIT_TAG }}
sha256sum: true

0 comments on commit 70c29f0

Please sign in to comment.