Skip to content

Workflow file for this run

name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-22.04
environment:
name: PyPI
url: https://pypi.org/project/pytest-aioworkers/${{ github.ref_name }}
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade hatch
- name: Build
run: |
hatch version $GITHUB_REF_NAME
hatch build
- name: Upload artifacts
uses: actions/[email protected]
with:
name: dist
path: dist
- name: Publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: |
hatch publish