Skip to content

[test]

[test] #12

Workflow file for this run

# .github/workflows/publish.yml
name: Publish Package
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
if: "contains(github.ref, '[release]') || contains(github.ref, '[RELEASE]')"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}