Skip to content

Commit

Permalink
chore: upgrade smenatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
joel@joellee.org committed Aug 23, 2023
1 parent 52474bc commit 0cf22c2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,21 @@ jobs:
with:
ref: ${{ github.ref }}
fetch-depth: 0
# This action uses Python Semantic Release v8
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
id: release
uses: python-semantic-release/python-semantic-release@v8.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 0cf22c2

Please sign in to comment.