Skip to content

Commit 96eaebf

Browse files
fix(workflow): release step
1 parent 39127eb commit 96eaebf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,15 @@ jobs:
6060
# run: |
6161
# git config --local user.email "github-actions[bot]@users.noreply.github.com"
6262
# git config --local user.name "github-actions[bot]"
63+
64+
- name: Install GitHub CLI
65+
run: sudo apt-get install gh -y
66+
6367
- name: Create GitHub release
6468
if: steps.check.outputs.version_equal == 'true'
6569
run: |
66-
gh release create "v${{ steps.check.outputs.new_version }}" --title "v${{ steps.check.outputs.new_version }}"
70+
gh release create "v${{ steps.check.outputs.new_version }}" \
71+
dist/* \
72+
--title "v${{ steps.check.outputs.new_version }}"
6773
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)