Skip to content

Commit b3e8970

Browse files
committed
feat: add a portion to release-python.yml to attach package files to the github release draft
1 parent ba54473 commit b3e8970

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

{{cookiecutter.project_name}}/.github/workflows/release-python.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
TWINE_PASSWORD: {{"${{ secrets.TESTPYPI_API_TOKEN }}"}}
5454
run: uvx nox -s publish-package -- --repository testpypi
5555

56-
publish_pypi:
57-
name: Publish to Production PyPI
56+
publish_pypi_and_github:
57+
name: Publish to Production PyPI and GitHub
5858
runs-on: ubuntu-latest
5959
needs: build_and_testpypi
6060

@@ -77,5 +77,10 @@ jobs:
7777
- name: Publish to PyPI
7878
env:
7979
TWINE_USERNAME: __token__
80-
TWINE_PASSWORD: {{"${{ secrets.PYPI_API_TOKEN }}"}}
80+
TWINE_PASSWORD: {{ "${{ secrets.PYPI_API_TOKEN }}" }}
8181
run: uvx nox -s publish-python
82+
83+
- name: Publish to GitHub
84+
env:
85+
GITHUB_TOKEN: {{ "${{ secrets.GITHUB_TOKEN }}" }}
86+
run: gh release upload {{ "${{ github.event.inputs.tag }}" }} dist/

0 commit comments

Comments
 (0)