Skip to content

Commit 4da0a23

Browse files
committed
CI: pypi reusable was not supported
1 parent 0f59d2b commit 4da0a23

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
1-
name: pypi
1+
name: Release
2+
23
on:
34
push:
45
tags:
56
- 'v[0-9]+\.[0-9]+\.[0-9]+'
67

78
jobs:
8-
pypi:
9-
uses: BartSte/.github/.github/workflows/pypi.yml@main
10-
with:
11-
environment-name: release
9+
pypi-publish:
10+
name: upload release to PyPI
11+
runs-on: ubuntu-latest
12+
environment: release
13+
permissions:
14+
id-token: write
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@v2
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install dependencies
25+
run: uv sync --frozen
26+
27+
- name: Build dist
28+
run: uv build --wheel --sdist
29+
30+
- name: Publish package distributions to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)