Skip to content

Commit f9974df

Browse files
author
Timothy MacDonald
authored
ci(release): allow release action to push changelog (#165)
Signed-off-by: Timothy MacDonald <[email protected]>
1 parent 8d87f9e commit f9974df

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/python-release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
27-
persist-credentials: false
27+
token: ${{ secrets.TOKEN }}
2828

2929
- name: Install poetry
3030
run: |
@@ -51,13 +51,8 @@ jobs:
5151
git config --global user.signingkey ${{ secrets.GPG_SIGNING_KEY }}
5252
git config commit.gpgsign true
5353
git config --global tag.gpgSign true
54-
poetry run semantic-release version --major --no-commit
54+
poetry run semantic-release version --major
5555
poetry run semantic-release publish
56-
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
57-
env:
58-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
59-
PYPI_USERNAME: __token__
60-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
6156
6257
- name: Python Semantic Release
6358
if: ${{ inputs.bump_major == 'false' }}
@@ -68,10 +63,12 @@ jobs:
6863
git config --global user.signingkey ${{ secrets.GPG_SIGNING_KEY }}
6964
git config commit.gpgsign true
7065
git config --global tag.gpgSign true
71-
poetry run semantic-release version --no-commit
66+
poetry run semantic-release version
7267
poetry run semantic-release publish
68+
69+
- name: Publish to PyPi
70+
run: |
7371
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
7472
env:
75-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
7673
PYPI_USERNAME: __token__
7774
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)