Skip to content

Commit

Permalink
ci(release): use gh to upload asset
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 21, 2024
1 parent e030f31 commit b352d42
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,8 @@ jobs:
- name: Upload release assets
run: |
set -x
upload_url="${{steps.release.outputs.upload_url}}"
tarball="bash-completion-$(cat version.txt).tar.xz"
curl \
--header "Authorization: Bearer ${{secrets.GITHUB_TOKEN}}" \
--header "Accept: application/vnd.github.v3+json" \
--header "Content-Type: application/x-xz-compressed-tar" \
--data-binary "@$tarball" \
"${upload_url%{*}?name=$tarball"
gh release upload ${{steps.release.outputs.tag_name}} \
bash-completion-$(cat version.txt).tar.xz
if: steps.release.outputs.release_created
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b352d42

Please sign in to comment.