Verified PyPI releases (a.k.a. PEP740)

This commit is contained in:
Daniel Graña 2024-11-15 00:09:00 -03:00
parent 30fb54f47e
commit dc4d6d16ea
1 changed files with 8 additions and 4 deletions

View File

@ -10,16 +10,20 @@ concurrency:
jobs:
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/Scrapy
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: |
pip install --upgrade build twine
python -m pip install --upgrade build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1