8
8
name : 🔨 Build distribution
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
12
12
with :
13
13
fetch-depth : 0
14
- - name : 🏗 Set up Python 3.8
15
- uses : actions/setup-python@v1
14
+ - name : 🏗 Set up Python 3.10
15
+ uses : actions/setup-python@v4
16
16
with :
17
- python-version : 3.8
17
+ python-version : " 3.10 "
18
18
- name : 🏗 Install build dependencies
19
19
run : |
20
- python -m pip install wheel octoprint --user
20
+ python -m pip install wheel --user
21
+ python -m pip install octoprint
21
22
- name : 🔨 Build a source zip
22
23
run : |
23
24
python setup.py sdist --formats=zip
24
25
- name : 🚚 rename to sdist.zip
25
26
run : |
26
27
mv dist/Marlin\ EEPROM\ editor-*.zip dist/sdist.zip
27
28
- name : ⬆ Upload build result
28
- uses : actions/upload-artifact@v1
29
+ uses : actions/upload-artifact@v2
29
30
with :
30
31
name : dist
31
32
path : dist
@@ -35,15 +36,15 @@ jobs:
35
36
needs : build
36
37
strategy :
37
38
matrix :
38
- python : ["2 .7", "3.7 ", "3.8 "]
39
+ python : ["3 .7", "3.9 ", "3.11 "]
39
40
runs-on : ubuntu-latest
40
41
steps :
41
42
- name : 🏗 Set up Python ${{ matrix.python }}
42
- uses : actions/setup-python@v1
43
+ uses : actions/setup-python@v4
43
44
with :
44
45
python-version : ${{ matrix.python }}
45
46
- name : ⬇ Download build result
46
- uses : actions/download-artifact@v1
47
+ uses : actions/download-artifact@v3
47
48
with :
48
49
name : dist
49
50
path : dist
63
64
- test-install
64
65
steps :
65
66
- name : ⬇ Download build result
66
- uses : actions/download-artifact@v1
67
+ uses : actions/download-artifact@v3
67
68
with :
68
69
name : dist
69
70
path : dist
72
73
cp dist/sdist.zip release.zip
73
74
- name : 🥅 Catch release ID
74
75
id : get_release
75
- uses : bruceadams/get-release@v1.2 .2
76
+ uses : bruceadams/get-release@v1.3 .2
76
77
env :
77
78
GITHUB_TOKEN : ${{ github.token }}
78
79
- name : 📦 Attach release artifact
0 commit comments