build(deps-dev): bump python-semantic-release from 9.15.1 to 9.15.2 #48
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
# Requires GitHub secrets | |
# - GH_TOKEN | |
# - PYPI_TOKEN | |
name: Release | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
concurrency: release | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Checkout repository | |
id: checkout-repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
id: install-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
architecture: x64 | |
- name: Install dependencies | |
id: install-dependencies | |
run: | | |
python -m pip install -U poetry twine | |
python -m poetry install --only main | |
- name: Semantic release | |
id: semantic-release | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Build package | |
id: build-package | |
run: python -m poetry build | |
- name: Publish package | |
id: publish-package | |
run: | | |
python -m poetry run twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --skip-existing --verbose |