Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Jun 17, 2024
1 parent 3e74b77 commit bfd1e89
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,24 @@ jobs:
deploy:

runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/biometrics
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
poetry lock
- name: Install dependencies
run: |
poetry install
- name: Build package
run: poetry build

- name: Publish package
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_PASSWORD }}
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build
run: |
poetry config pypi-token.pypi ${PYPI_API_TOKEN}
poetry publish
python setup.py sdist bdist_wheel
- name: pypi-publish
uses: pypa/[email protected]

0 comments on commit bfd1e89

Please sign in to comment.