Skip to content

1.3.1

1.3.1 #162

Workflow file for this run

name: Deploy to Prod PyPi
on:
release:
types:
- published
workflow_dispatch:
env:
HATCH_VERSION: "v1.7.0" # keep in sync with deploy.yml
permissions:
id-token: write
jobs:
deploy-prod:
runs-on: ubuntu-latest
environment: release
env:
pypi: ${{ vars.PYPI_URL }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Bump version
# Bump version to Github action tag
run: hatch version ${{github.ref_name}}
- name: Build
run: hatch build
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{env.pypi}}