Skip to content

chore: Update semantic versioning #5

chore: Update semantic versioning

chore: Update semantic versioning #5

Workflow file for this run

name: Release on PyPI
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.RELEASE_TOKEN }}
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.RELEASE_TOKEN }}
changelog: 'false'
prerelease: 'false'
- name: Install hatch
run: |
python -m pip install hatch
- name: Build
run: hatch build
- name: Publish on PyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.release.outputs.released == 'true'
run: hatch publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.HATCH_INDEX_AUTH }}