Skip to content

Commit

Permalink
fix: update to handle v8 semantic release GH action (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevang committed Nov 20, 2023
1 parent 4ad2791 commit 5b8c6d8
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,31 @@ jobs:
Release_Package:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Execute Semantic Release
uses: python-semantic-release/python-semantic-release@v7.34.6
# This action uses Python Semantic Release v8
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v8
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 5b8c6d8

Please sign in to comment.