Skip to content

Update release.yml

Update release.yml #27

Workflow file for this run

name: Build distribution
on: [push, pull_request, 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@v1
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 --build