Skip to content

Commit 17c2272

Browse files
committed
Update the publishing config
1 parent 7120222 commit 17c2272

5 files changed

Lines changed: 56 additions & 31 deletions

File tree

.bumpversion.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.bumpversion]
2+
current_version = "2.6.0"
3+
commit = true
4+
tag = true
5+
tag_name = "{new_version}"
6+
7+
[[tool.bumpversion.files]]
8+
filename = "CHANGES.rst"
9+
search = "\\(unreleased\\)$"
10+
replace = "({now:%Y-%m-%d})"
11+
regex = true
12+
13+
[[tool.bumpversion.files]]
14+
filename = "scrapinghub/VERSION"

.github/workflows/publish.yml

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
11
name: Publish
2-
on:
3-
release:
4-
types: [published]
5-
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+.[0-9]+.[0-9]+'
6+
concurrency:
7+
group: ${{github.workflow}}-${{ github.ref }}
8+
cancel-in-progress: true
69
jobs:
7-
publish:
10+
build:
811
runs-on: ubuntu-latest
9-
1012
steps:
11-
- uses: actions/checkout@v2
12-
13-
- name: Set up Python 3
14-
uses: actions/setup-python@v2
15-
with:
16-
python-version: 3
17-
18-
- name: Build distribution
19-
run: |
20-
pip install -U setuptools wheel
21-
python setup.py sdist bdist_wheel
22-
23-
- name: Publish to PyPI
24-
uses: pypa/gh-action-pypi-publish@release/v1
25-
with:
26-
password: ${{ secrets.PYPI_TOKEN }}
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-python@v6
15+
with:
16+
python-version: "3.13"
17+
- run: |
18+
python -m pip install --upgrade pip
19+
pip install --upgrade build twine
20+
python -m build
21+
twine check dist/*
22+
- uses: actions/upload-artifact@v6
23+
with:
24+
name: packages
25+
path: dist/
26+
if-no-files-found: error
27+
compression-level: 0
28+
deploy:
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
id-token: write
33+
environment:
34+
name: pypi
35+
url: https://pypi.org/p/scrapinghub
36+
steps:
37+
- uses: actions/download-artifact@v7
38+
with:
39+
name: packages
40+
path: dist/
41+
- uses: pypa/gh-action-pypi-publish@release/v1
42+
with:
43+
print-hash: true
44+
verbose: true

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Release notes
22
=============
33

4-
2.6.0 (unreleased)
4+
2.6.0 (2026-03-20)
55
------------------
66

77
- remove official support for Python 3.8

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
VERSION?=minor
44

55
release:
6-
bumpversion $(VERSION)
6+
bumpversion --config-file .bumpversion.toml $(VERSION)
77

88
release-minor: release
99

0 commit comments

Comments
 (0)