Skip to content

Commit

Permalink
ci: use gh to upload artifact to release
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosacchetto committed Jan 24, 2024
1 parent 09be5b0 commit 5ae5a27
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ jobs:
run: echo "archive=$(npm pack 2>/dev/null | tail -1)" >> $GITHUB_ENV

- name: Upload ${{ env.archive }} to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: refs/tags/${{ needs.release-please.outputs.tag_name }}
file: ${{ env.archive }}
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ${{ env.archive }}

0 comments on commit 5ae5a27

Please sign in to comment.