Skip to content

build(deps-dev): bump python-semantic-release from 9.15.0 to 9.15.1 #42

build(deps-dev): bump python-semantic-release from 9.15.0 to 9.15.1

build(deps-dev): bump python-semantic-release from 9.15.0 to 9.15.1 #42

Workflow file for this run

# 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