Skip to content

Commit

Permalink
fix binary release
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Apr 22, 2020
1 parent 67e1392 commit 8e31a42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/binary.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish Binary
on:
push:
create:
tags:
- "*"
jobs:
Expand All @@ -12,5 +12,4 @@ jobs:
- uses: actions/checkout@master
- run: ./release.sh
env:
TAG: ${{ github.event.release.tag_name }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
8 changes: 4 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ set -x
cd $GITHUB_WORKSPACE
GITHUB_USER=$(echo $GITHUB_REPOSITORY | cut -d/ -f1)
NAME=$(echo $GITHUB_REPOSITORY | cut -d/ -f2)
VERSION="v$TAG built $(date)"
VERSION="v$GITHUB_REF built $(date)"

make setup linux darwin compress

github-release release -u $GITHUB_USER -r ${NAME} --tag $TAG
github-release upload -R -u $GITHUB_USER -r ${NAME} --tag $TAG -n ${NAME} -f .bin/${NAME}
github-release upload -R -u $GITHUB_USER -r ${NAME} --tag $TAG -n ${NAME}_osx -f .bin/${NAME}_osx
github-release release -u $GITHUB_USER -r ${NAME} --tag $GITHUB_REF
github-release upload -R -u $GITHUB_USER -r ${NAME} --tag $GITHUB_REF -n ${NAME} -f .bin/${NAME}
github-release upload -R -u $GITHUB_USER -r ${NAME} --tag $GITHUB_REF -n ${NAME}_osx -f .bin/${NAME}_osx

0 comments on commit 8e31a42

Please sign in to comment.