Skip to content

Commit 085474b

Browse files
author
James Boulton
committed
update git hub push to pipi runner
1 parent 5cec36b commit 085474b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2-
32
on: push
4-
53
jobs:
64
build:
75
name: Build distribution 📦
86
runs-on: ubuntu-latest
97
steps:
108
- uses: actions/checkout@v4
11-
129
- name: Install uv
13-
uses: astral-sh/setup-uv@v4
14-
10+
uses: astral-sh/setup-uv@v5
1511
- name: Set up Python
1612
run: uv python install 3.13
17-
1813
- name: Build distribution
1914
run: uvx --from build pyproject-build --installer uv
20-
2115
- name: Store the distribution packages
2216
uses: actions/upload-artifact@v4
2317
with:
2418
name: python-package-distributions
2519
path: dist/
26-
2720
publish-to-pypi:
2821
name: Publish Python 🐍 distribution 📦 to PyPI
29-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
22+
if: startsWith(github.ref, 'refs/tags/')
3023
needs:
3124
- build
3225
runs-on: ubuntu-latest
3326
environment:
3427
name: pypi
3528
url: https://pypi.org/project/dashio
3629
permissions:
37-
id-token: write # IMPORTANT: mandatory for trusted publishing
30+
id-token: write
3831
steps:
3932
- name: Download all the dists
4033
uses: actions/download-artifact@v4
4134
with:
4235
name: python-package-distributions
4336
path: dist/
44-
4537
- name: Publish distribution 📦 to PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
38+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)