Skip to content

Commit b4e6931

Browse files
committed
Refactor release workflow for PyPI publishing
1 parent 452e2c0 commit b4e6931

4 files changed

Lines changed: 76 additions & 65 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ on:
55
- created
66

77
jobs:
8-
publish:
8+
pypi-publish:
99
runs-on: ubuntu-latest
10+
name: upload release to PyPI
11+
environment: release
12+
permissions:
13+
# IMPORTANT: this permission is mandatory for Trusted Publishing
14+
id-token: write
1015
strategy:
1116
fail-fast: false
1217
matrix:
1318
python-version: ['3.13']
19+
1420
steps:
1521
- uses: actions/checkout@v4
1622

@@ -19,9 +25,8 @@ jobs:
1925
with:
2026
python-version: ${{ matrix.python-version }}
2127

22-
- name: Publish
23-
env:
24-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
25-
run: |
26-
uv build
27-
uv publish --token $PYPI_TOKEN
28+
- name: Build package distributions
29+
run: uv build
30+
31+
- name: Publish package distributions to PyPI
32+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# NGI Python Coordinate Projector Package
22

33

4+
## Version 0.0.13
5+
_2025-05-21_
6+
7+
Internal
8+
9+
- Refactor release workflow for PyPI publishing.
410

511

612
## Version 0.0.12

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "coordinate-projector"
3-
version = "0.0.12"
3+
version = "0.0.13"
44
description = "Project points from one projection to another using pyproj"
55
authors = [
66
{ name = "Helge Smebye" },

0 commit comments

Comments
 (0)