Skip to content

Commit

Permalink
Fix tag (#21)
Browse files Browse the repository at this point in the history
* Fix invalid tag being used for release

* Fix version tag
  • Loading branch information
ErikSchierboom authored Oct 9, 2020
1 parent 51cb978 commit 1f5f811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/bin/publish-release
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh

gh release create $TAG
gh release upload $TAG $ARTIFACT_FILE
VERSION=$(echo $REF | cut -d "/" -f3)

gh release create $VERSION
gh release upload $VERSION $ARTIFACT_FILE
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
run: ./.github/bin/publish-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref }}
REF: ${{ github.ref }}

0 comments on commit 1f5f811

Please sign in to comment.