File tree 1 file changed +18
-25
lines changed
1 file changed +18
-25
lines changed Original file line number Diff line number Diff line change @@ -3,50 +3,43 @@ name: release-deploy
3
3
on :
4
4
release :
5
5
types : [ published ]
6
+ # push:
7
+ # branches: [ main ]
8
+ # pull_request:
6
9
7
10
jobs :
8
- build_deploy :
9
- name : Build and deploy
11
+ build-deploy :
10
12
runs-on : ubuntu-latest
13
+ environment :
14
+ name : pypi
15
+ url : https://pypi.org/project/pylibjpeg/
16
+ permissions :
17
+ id-token : write
11
18
12
19
steps :
13
20
- uses : actions/checkout@v4
14
21
with :
15
22
submodules : true
16
23
17
- - uses : actions/setup-python@v5
18
- name : Install Python
24
+ - name : Install Python
25
+ uses : actions/setup-python@v5
19
26
with :
20
- python-version : 3.9
21
-
22
- - name : Install requirements
27
+ python-version : 3.8
23
28
29
+ - name : Install required packages
24
30
run : |
25
31
python -m pip install -U pip
26
- python -m pip install twine wheel
32
+ python -m pip install build
27
33
28
34
- name : Build wheels and sdist
29
35
run : |
30
- python setup.py sdist bdist_wheel
36
+ python -m build
31
37
32
- - uses : actions/upload-artifact@v4
38
+ - name : Upload artifacts
39
+ uses : actions/upload-artifact@v4
33
40
with :
34
41
name : wheels
35
42
path : ./dist
36
43
37
44
- name : Publish package to PyPi
38
- environment :
39
- name : pypi
40
- url : https://pypi.org/project/pylibjpeg/
41
- permissions :
42
- id-token : write
43
-
44
- steps :
45
- - name : Download the wheels
46
- uses : actions/download-artifact@v4
47
- with :
48
- path : dist/
49
- merge-multiple : true
50
-
51
- - name : Publish package to PyPi
52
- uses : pypa/gh-action-pypi-publish@release/v1
45
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments