Build distribution #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |