Skip to content

Commit 81a99a9

Browse files
Improved the release process (#400)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 51a1c76 commit 81a99a9

File tree

5 files changed

+16
-375
lines changed

5 files changed

+16
-375
lines changed

.github/workflows/build.yaml

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

.github/workflows/release.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ on:
55
types: [published]
66

77
jobs:
8-
release:
9-
# requires that you have put your twine API key in your
10-
# github secrets (see readme for details)
8+
package_and_release:
119
runs-on: ubuntu-latest
12-
if: contains(github.ref, 'tags')
10+
if: startsWith(github.ref, 'refs/tags/v')
1311
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v3
16-
17-
- name: Set up Python 3.10
12+
- uses: actions/checkout@v3
13+
- name: Set up Python 3.12
1814
uses: actions/setup-python@v4
1915
with:
20-
python-version: "3.10"
21-
16+
python-version: "3.12"
17+
cache: pip
18+
- name: Install build dependencies
19+
run: python -m pip install --upgrade pip wheel twine build
20+
- name: Build package
21+
run: python -m build
22+
- name: Check package
23+
run: twine check --strict dist/*.whl
2224
- name: Install hatch
2325
run: pip install hatch
24-
2526
- name: Build project for distribution
2627
run: hatch build
27-
2828
- name: Publish a Python distribution to PyPI
2929
uses: pypa/gh-action-pypi-publish@release/v1
3030
with:

CHANGELOG.md

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

docs/changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
```{include} ../CHANGELOG.md
1+
# Changelog
22

3-
```
3+
Please refer directly to the [Releases](https://github.com/scverse/spatialdata-plot/releases) section on GitHub, where you can find curated release notes for each release.
4+
For developers, please consult the [contributing guide](https://github.com/scverse/spatialdata/blob/main/docs/contributing.md), which explains how to keep release notes are up-to-date at each release.

0 commit comments

Comments
 (0)