File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,31 +4,39 @@ name: release
4
4
on :
5
5
release :
6
6
types : [published]
7
+ workflow_dispatch :
7
8
8
9
jobs :
9
10
pypi :
10
11
name : Publish to PyPI registry
11
12
environment : release
12
13
runs-on : ubuntu-22.04
14
+ permissions :
15
+ id-token : write
13
16
14
17
env :
15
18
FORCE_COLOR : 1
16
19
PY_COLORS : 1
17
20
TOXENV : pkg
18
21
19
22
steps :
20
- - name : Switch to using Python 3.9 by default
23
+ - name : Switch to using Python 3.10 by default
21
24
uses : actions/setup-python@v4
22
25
with :
23
- python-version : 3.9
26
+ python-version : " 3.10"
27
+
24
28
- name : Install tox
25
29
run : python3 -m pip install --user "tox>=4.0.0"
30
+
26
31
- name : Check out src from Git
27
32
uses : actions/checkout@v4
28
33
with :
29
34
fetch-depth : 0 # needed by setuptools-scm
35
+ submodules : true
36
+
30
37
- name : Build dists
31
38
run : python -m tox
39
+
32
40
- name : Publish to pypi.org
33
41
if : >- # "create" workflows run separately from "push" & "pull_request"
34
42
github.event_name == 'release'
You can’t perform that action at this time.
0 commit comments