Skip to content

Commit

Permalink
Merge pull request #11 from nalbury/na-fix-release-ci
Browse files Browse the repository at this point in the history
fixing release version parsing
  • Loading branch information
nalbury committed Jan 11, 2021
2 parents d48778d + fb6c157 commit b1dbc34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Create release artifacts
run: VERSION=${GITHUB_REF} make release
run: VERSION=$(awk -F '/' '{print $3}'<<< "$GITHUB_REF") make release
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=$(awk -F '/' '{print $3}'<<< "$GITHUB_REF")
for f in ./build/artifacts/*
do
[ -f "$f" ] && assets+=(-a "$f")
done
hub release create -m "Release ${GITHUB_REF}" \
"${assets[@]}" "${GITHUB_REF}"
hub release create -m "Release ${VERSION}" \
"${assets[@]}" "${VERSION}"

0 comments on commit b1dbc34

Please sign in to comment.