Skip to content

Commit e0ffff6

Browse files
committed
Use pypa GHA for publishing
1 parent b0c10cf commit e0ffff6

1 file changed

Lines changed: 13 additions & 31 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,24 @@ on:
77

88
jobs:
99

10-
builds:
10+
upload:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214

1315
steps:
14-
- uses: actions/checkout@v3
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.10'
20-
21-
- name: Install build
22-
run: |
23-
pip install --upgrade pip
24-
pip install build
16+
- uses: actions/checkout@v3
2517

26-
- run: python -m build .
27-
28-
- uses: actions/upload-artifact@v3
29-
with:
30-
name: dist
31-
path: ./dist/*
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.12'
3222

33-
upload:
34-
needs: builds
35-
runs-on: ubuntu-latest
23+
- name: Install build
24+
run: pip install build
3625

37-
steps:
38-
- name: Stage wheels
39-
uses: actions/download-artifact@v3
40-
with:
41-
name: dist
42-
path: dist
26+
- name: Create build
27+
run: python -m build
4328

44-
- name: Publish package
29+
- name: Publish package distributions to PyPI
4530
uses: pypa/gh-action-pypi-publish@release/v1
46-
with:
47-
user: __token__
48-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)