chore(deps): update dependency python-semantic-release to v9.21.0 #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build & Release | |
permissions: {} | |
on: # yamllint disable-line rule:truthy | |
push: | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
jobs: | |
build_and_release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
permissions: | |
contents: write | |
packages: write | |
statuses: write | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Release | |
uses: python-semantic-release/python-semantic-release@v9.8.5 | |
id: release | |
if: github.ref_name == 'main' | |
with: | |
changelog: "false" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ env.PYPI_TOKEN }} | |
if: steps.release.outputs.released == 'true' | |
- name: Publish package distributions to GitHub Releases | |
uses: python-semantic-release/upload-to-gh-release@v9.8.5 | |
if: steps.release.outputs.released == 'true' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |