Skip to content

Commit 106385d

Browse files
authored
Fix release pipeline (#232)
1 parent 93ce50d commit 106385d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,39 @@ 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@v4
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.0"
30+
2631
- name: Check out src from Git
2732
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'

0 commit comments

Comments
 (0)