mirror of https://github.com/scrapy/scrapy.git
26 lines
565 B
YAML
26 lines
565 B
YAML
name: Publish
|
|
on:
|
|
push:
|
|
tags:
|
|
- '[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
concurrency:
|
|
group: ${{github.workflow}}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.13.0-beta.1"
|
|
- run: |
|
|
pip install --upgrade build twine
|
|
python -m build
|
|
- name: Publish to PyPI
|
|
uses: pypa/gh-action-pypi-publish@v1.6.4
|
|
with:
|
|
password: ${{ secrets.PYPI_TOKEN }}
|