File: publish.yml

package info (click to toggle)
python-w3lib 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: python: 3,060; makefile: 133
file content (31 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
name: Publish

on:
    push:
        tags:
            - v[0-9]+.[0-9]+.[0-9]+

jobs:
    publish:
        runs-on: ubuntu-latest
        environment:
            name: pypi
            url: https://pypi.org/p/w3lib
        permissions:
            id-token: write
        steps:
            - uses: actions/checkout@v6

            - name: Set up Python
              uses: actions/setup-python@v6
              with:
                  python-version: '3.14'

            - name: Build
              run: |
                  python -m pip install --upgrade build
                  python -m build

            - name: Publish to PyPI
              uses: pypa/gh-action-pypi-publish@release/v1