Skip to content

Commit

Permalink
moved to environment sec
Browse files Browse the repository at this point in the history
  • Loading branch information
dariomalchiodi committed Oct 13, 2024
1 parent 29cf1e9 commit a98bdfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
jobs:
build:
name: Build distribution 📦
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -27,9 +24,12 @@ jobs:
run: pip install -r requirements.txt
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Publish Python 🐍 distribution 📦 to PyPI
- name: Publish to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_REPOSITORY_URL: "https://test.pypi.org/legacy/"
run: |
echo KEY: "${TWINE_PASSWORD}"
python -m twine upload dist/*

0 comments on commit a98bdfe

Please sign in to comment.