Skip to content

Commit

Permalink
Trying to fix publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed Oct 24, 2023
1 parent 8a2b4d2 commit a965485
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ jobs:

runs-on: ubuntu-latest

environment: deployment
environment:
name: deployment
url: https://pypi.org/project/python-parakeet/

permissions:
id-token: write

steps:
- uses: actions/checkout@v2
Expand All @@ -25,11 +30,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a965485

Please sign in to comment.