Skip to content

Commit

Permalink
ghコマンドの引数を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Ojii committed Oct 8, 2023
1 parent 7dc4a6b commit ffd68f0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,11 @@ jobs:
name: MotionTracking_MKII_Plus
path: artifacts

# https://gist.github.com/superbrothers/af84a2f8af394a62352e06537a640746
- name: Create a Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
REVCOUNT=`git rev-list --count HEAD`
RELEASE_NAME=r${REVCOUNT}
TAG_NAME=r${REVCOUNT}
assets=()
for asset in ${{ github.workspace }}/artifacts/*.zip; do
assets+=("-a" "$asset")
done
gh release create "${assets[@]}" -m "$RELEASE_NAME" "$TAG_NAME"
gh release create "${TAG_NAME}" ${{ github.workspace }}/artifacts/*.zip -t "${RELEASE_NAME}"

0 comments on commit ffd68f0

Please sign in to comment.