Skip to content

Commit

Permalink
Updating publish workflow to API Token
Browse files Browse the repository at this point in the history
  • Loading branch information
switschel authored Feb 6, 2024
1 parent 31a3055 commit 41262eb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
PIP_DISABLE_PIP_VERSION_CHECK: '1'
PIP_NO_CACHE_DIR: '1'
run: |
pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
invoke build publish
pip install build
- name: Build
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 41262eb

Please sign in to comment.