File tree Expand file tree Collapse file tree 2 files changed +21
-13
lines changed Expand file tree Collapse file tree 2 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ concurrency:
20
20
21
21
jobs :
22
22
build-release :
23
- runs-on : ubuntu-20 .04
23
+ runs-on : ubuntu-22 .04
24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
- uses : actions/setup-python@v5
27
27
with :
28
- python-version : 3.8
28
+ python-version : 3.11
29
+ cache : pip
29
30
30
31
- name : install build package
31
32
run : |
41
42
- name : verify wheel
42
43
run : |
43
44
cd dist
44
- pip install ./*.whl jupyterlab==3 .*
45
+ pip install ./*.whl jupyterlab==4 .*
45
46
ipcluster --help-all
46
47
ipcontroller --help-all
47
48
ipengine --help-all
@@ -55,11 +56,18 @@ jobs:
55
56
path : " dist/*"
56
57
if-no-files-found : error
57
58
58
- - name : Publish to PyPI
59
- if : startsWith(github.ref, 'refs/tags/')
60
- env :
61
- TWINE_USERNAME : __token__
62
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
63
- run : |
64
- pip install twine
65
- twine upload --skip-existing dist/*
59
+ upload-pypi :
60
+ permissions :
61
+ id-token : write
62
+ environment : release
63
+ runs-on : ubuntu-22.04
64
+ if : startsWith(github.ref, 'refs/tags/')
65
+ needs :
66
+ - build-release
67
+ steps :
68
+ - uses : actions/download-artifact@v4
69
+ with :
70
+ path : dist
71
+ merge-multiple : true
72
+ - name : Publish wheels to PyPI
73
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 18
18
"strict" : true ,
19
19
"strictNullChecks" : false ,
20
20
"target" : " es2018" ,
21
- "types" : [],
21
+ "types" : []
22
22
},
23
- "include" : [" lab/src/*" ],
23
+ "include" : [" lab/src/*" ]
24
24
}
You can’t perform that action at this time.
0 commit comments