Skip to content

Commit

Permalink
Updating publish pypi to API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
switschel committed Feb 6, 2024
1 parent bb2e3a3 commit d7a5578
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
with:
python-version: '3.x'
- 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 }}
PIP_DISABLE_PIP_VERSION_CHECK: '1'
PIP_NO_CACHE_DIR: '1'
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
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 d7a5578

Please sign in to comment.