Skip to content

Commit

Permalink
hubコマンドをghコマンドに
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Ojii committed Nov 18, 2023
1 parent 5c50a9c commit ccf4c12
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ jobs:
cd ${{ github.workspace }}/artifacts
RELEASE_NAME=TJAPlayer3-f-prerelease-${{ needs.get_rev_list_count.outputs.rev_list_count }}
TAG_NAME=prerelease-${{ needs.get_rev_list_count.outputs.rev_list_count }}
assets=()
for asset in ${{ github.workspace }}/artifacts/*.zip; do
assets+=("-a" "$asset")
done
hub release create "${assets[@]}" -p -m "$RELEASE_NAME" "$TAG_NAME"
gh release create "${TAG_NAME}" ${{ github.workspace }}/artifacts/*.zip -t "${RELEASE_NAME}" -p
- name: Create a Release
if: (startsWith(github.ref, 'refs/tags/Ver'))
Expand All @@ -135,9 +131,5 @@ jobs:
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
RELEASE_NAME=${VERSION}
TAG_NAME=${VERSION}
assets=()
for asset in ${{ github.workspace }}/artifacts/*.zip; do
assets+=("-a" "$asset")
done
hub release create "${assets[@]}" -m "$RELEASE_NAME" "$TAG_NAME"
gh release create "${TAG_NAME}" ${{ github.workspace }}/artifacts/*.zip -t "${RELEASE_NAME}"

0 comments on commit ccf4c12

Please sign in to comment.