Skip to content

Build distribution

Build distribution #37

Workflow file for this run

name: Build distribution
on: [workflow_dispatch]
jobs:
test:
runs-on: "ubuntu-latest"
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install Poetry
run: pip install poetry
- name: Configure Poetry
run: |
poetry config virtualenvs.create false
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build distributions with Poetry
run: poetry build
- name: Publish package to PyPI
# if: github.repository == 'factryflow/factryengine' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: poetry publish --verbose