Skip to content

release the package to pypi #10

release the package to pypi

release the package to pypi #10

Workflow file for this run

name: Python package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Test the project
run: hatch run test:run
- name: Build
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Test the released packaged
run: hatch run release:test
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1