Skip to content

v0.2.0b

v0.2.0b #83

Workflow file for this run

name: Publish Release to PyPI
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Build with hatch
run: |
hatch build -c
- name: upload release to PyPI
uses: pypa/gh-action-pypi-publish@release/v1