Skip to content

Commit 69dcd26

Browse files
committed
Switch release to OpenID Connect
1 parent 8905f0b commit 69dcd26

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,34 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
jobs:
8-
PyPi:
9+
pypi-build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-python@v6
15+
with:
16+
python-version: "3.x"
17+
- run: python -m pip install --upgrade pip build wheel
18+
- run: python -m build --sdist --wheel
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: release-dists
22+
path: dist/
923

24+
pypi-publish:
1025
runs-on: ubuntu-latest
26+
needs:
27+
- pypi-build
28+
permissions:
29+
id-token: write
30+
1131
steps:
12-
- uses: actions/checkout@v5
13-
- uses: actions/setup-python@v6
14-
with:
15-
python-version: "3.10"
16-
- run: sudo apt install gettext -y
17-
- run: python -m pip install --upgrade pip build wheel twine
18-
- run: make gettext
19-
- run: python -m build --sdist --wheel
20-
- run: python -m twine upload dist/*
21-
env:
22-
TWINE_USERNAME: __token__
23-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
32+
- uses: actions/download-artifact@v5
33+
with:
34+
name: release-dists
35+
path: dist/
36+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)