Skip to content

Commit

Permalink
build: updated pypi workflow
Browse files Browse the repository at this point in the history
- no username/password required
  • Loading branch information
koulanurag committed Feb 19, 2024
1 parent 6a2a588 commit 32a7b9a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ name: Upload Python Package

on:
release:
types: [created]
types: [published]


jobs:
deploy:

pypi-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/maze-world/
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -22,10 +26,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine 'readme_renderer[md]'
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Build
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 32a7b9a

Please sign in to comment.