Skip to content

Merge pull request #52 from centre-for-humanities-computing/kf/fix-pr… #57

Merge pull request #52 from centre-for-humanities-computing/kf/fix-pr…

Merge pull request #52 from centre-for-humanities-computing/kf/fix-pr… #57

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
if: ${{ github.ref == 'refs/heads/main' }}
steps:
# Checkout action is required for token to persist
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.RELEASE }}
- name: Python Semantic Release
uses: relekang/[email protected]
with:
github_token: ${{ secrets.RELEASE }}
# Remember to copy the [tool.semantic_release] section from pyproject.toml
# as well
# To enable pypi,
# 1) Set upload_to_pypi to true in pyproject.toml and
# 2) Set the pypi_token in the repo
# 3) Uncomment the two lines below
repository_username: __token__
repository_password: ${{ secrets.PYPI_API_TOKEN }}