Skip to content

Commit

Permalink
Merge pull request #218 from imeoer/action-fix-hub-again
Browse files Browse the repository at this point in the history
action: fix unauthorized issue on release
  • Loading branch information
imeoer authored Oct 16, 2023
2 parents c090de9 + 529df94 commit 7d59989
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ jobs:
name: harbor-acceld-artifacts
path: |
${{ env.OUTPUT_DIR }}
- name: Install hub Command
run: |
sudo apt install -y hub
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -115,8 +112,8 @@ jobs:
(TBD)
EOF
ASSET_FLAGS=()
ASSET_ARGS=()
for F in ${OUTPUT_DIR}/* ; do
ASSET_FLAGS+=("-a" "$F")
ASSET_ARGS+=("$F")
done
hub release create "${ASSET_FLAGS[@]}" -F ${GITHUB_WORKSPACE}/release-note.txt --draft $TAG
gh release create -F ${GITHUB_WORKSPACE}/release-note.txt --draft --title $TAG $TAG "${ASSET_ARGS[@]}"

0 comments on commit 7d59989

Please sign in to comment.