Skip to content

Commit

Permalink
ci(release): allow release action to push changelog (#165)
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy MacDonald <[email protected]>
  • Loading branch information
tmac1973 authored Feb 27, 2024
1 parent 8d87f9e commit f9974df
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.TOKEN }}

- name: Install poetry
run: |
Expand All @@ -51,13 +51,8 @@ jobs:
git config --global user.signingkey ${{ secrets.GPG_SIGNING_KEY }}
git config commit.gpgsign true
git config --global tag.gpgSign true
poetry run semantic-release version --major --no-commit
poetry run semantic-release version --major
poetry run semantic-release publish
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Python Semantic Release
if: ${{ inputs.bump_major == 'false' }}
Expand All @@ -68,10 +63,12 @@ jobs:
git config --global user.signingkey ${{ secrets.GPG_SIGNING_KEY }}
git config commit.gpgsign true
git config --global tag.gpgSign true
poetry run semantic-release version --no-commit
poetry run semantic-release version
poetry run semantic-release publish
- name: Publish to PyPi
run: |
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit f9974df

Please sign in to comment.