Skip to content

Commit 9fc7cd0

Browse files
authored
Fix release pipeline (#26)
1 parent b60981a commit 9fc7cd0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,40 @@ name: release
44
on:
55
release:
66
types: [published]
7+
workflow_dispatch:
78

89
jobs:
910
pypi:
1011
name: Publish to PyPI registry
1112
environment: release
1213
runs-on: ubuntu-22.04
14+
permissions:
15+
id-token: write
1316

1417
env:
1518
FORCE_COLOR: 1
1619
PY_COLORS: 1
1720
TOXENV: pkg
1821

1922
steps:
20-
- name: Switch to using Python 3.9 by default
23+
- name: Switch to using Python 3.10 by default
2124
uses: actions/setup-python@v5
2225
with:
23-
python-version: 3.9
26+
python-version: "3.10"
27+
2428
- name: Install tox
2529
run: python3 -m pip install --user "tox>=4.0.8"
30+
2631
- name: Check out src from Git
27-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
2833
with:
2934
fetch-depth: 0 # needed by setuptools-scm
35+
submodules: true
36+
3037
- name: Build dists
3138
run: python -m tox
39+
3240
- name: Publish to pypi.org
3341
if: >- # "create" workflows run separately from "push" & "pull_request"
3442
github.event_name == 'release'
3543
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)