Skip to content

Commit

Permalink
Merge pull request #1426 from ktock/ci-fix-hub-gh
Browse files Browse the repository at this point in the history
CI: release: Migrate from hub to gh
  • Loading branch information
AkihiroSuda authored Oct 13, 2023
2 parents e5c25df + cafa308 commit 99700fc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ jobs:
run: |
RELEASE_TAG="${GITHUB_REF##*/}"
cat <<EOF > ${GITHUB_WORKSPACE}/release-note.txt
${RELEASE_TAG}
(TBD)
EOF
ASSET_FLAGS=()
ASSET_ARGS=()
ls -al ${OUTPUT_DIR}/
for A in "amd64" "arm-v7" "arm64" "ppc64le" "s390x" ; do
for F in ${OUTPUT_DIR}/builds-${A}/* ; do
ASSET_FLAGS+=("-a" "$F")
done
ASSET_ARGS+=("${OUTPUT_DIR}/builds-${A}/*")
done
hub release create "${ASSET_FLAGS[@]}" -F ${GITHUB_WORKSPACE}/release-note.txt --draft "${RELEASE_TAG}"
gh release create -F ${GITHUB_WORKSPACE}/release-note.txt --draft --title "${RELEASE_TAG}" "${RELEASE_TAG}" "${ASSET_ARGS[@]}"

0 comments on commit 99700fc

Please sign in to comment.