Skip to content

Commit 01f69d8

Browse files
Merge pull request #10 from YannBerthelot/first_release
updated publish CI
2 parents 0b4aa1f + ece06e1 commit 01f69d8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
permissions:
8-
contents: write # required for uploading release assets
8+
contents: write # required to upload release assets
99

1010
jobs:
1111
publish:
@@ -36,11 +36,9 @@ jobs:
3636
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
3737
run: poetry publish --no-interaction
3838

39-
# - name: Authenticate GitHub CLI
40-
# run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
41-
42-
# - name: Upload release assets
43-
# run: |
44-
# for file in dist/*; do
45-
# gh release upload "${{ github.event.release.tag_name }}" "$file"
46-
# done
39+
# Upload built files to the *existing* release (triggered by release: published)
40+
- name: Upload release assets with gh
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # gh reads this automatically
43+
run: |
44+
gh release upload "${{ github.event.release.tag_name }}" dist/* --clobber

0 commit comments

Comments
 (0)