Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yacobolo authored Feb 13, 2024
1 parent 4cbef43 commit 9cc8c78
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.11

- name: Install build dependencies
run: python -m pip install build wheel
- name: Install Poetry
run: pip install poetry

- name: Build distributions
shell: bash -l {0}
run: python setup.py sdist bdist_wheel
- 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 == 'yacobolo/factryengine' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
if: github.repository == 'factryflow/factryengine' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: poetry publish --build

0 comments on commit 9cc8c78

Please sign in to comment.