Skip to content

Commit

Permalink
ci(pypi): use Trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Oct 29, 2023
1 parent 568a695 commit 9f81f10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
release-python-package:
needs: update-version-and-changelog-files
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/manytask-checker
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -60,9 +65,6 @@ jobs:
python -m pip wheel . --no-deps --wheel-dir dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: dist

# release-github-pages:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 9f81f10

Please sign in to comment.