Skip to content

Merge pull request #91 from christopherpickering/dev #31

Merge pull request #91 from christopherpickering/dev

Merge pull request #91 from christopherpickering/dev #31

Workflow file for this run

name: Release
on:
push:
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Poetry
uses: snok/install-poetry@v1
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
extra_plugins: |
@semantic-release/changelog@6
@semantic-release/exec
@semantic-release/git@10
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
- name: Build and publish package
if: steps.semantic.outputs.new_release_published == 'true'
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}