Skip to content

Commit 5360cfa

Browse files
committed
ci: use custom build action & newer python version
1 parent 7dde218 commit 5360cfa

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,14 @@ jobs:
1515
- uses: actions/checkout@v6
1616
with:
1717
persist-credentials: false
18-
- name: 🏗 Set up Python 3.7
19-
uses: actions/setup-python@v4
18+
- name: 🏗 Set up Python 3.10
19+
uses: actions/setup-python@v5
2020
with:
21-
python-version: 3.7
22-
- name: 🐙 Install OctoPrint
23-
run: >-
24-
python -m pip install octoprint --user
25-
- name: 🏗 Install build dependencies
26-
run: >-
27-
python -m pip install wheel --user
28-
- name: 🔨 Build a binary wheel and a source tarball
29-
run: >-
30-
python setup.py sdist bdist_wheel
31-
- name: ⬆ Upload build result
32-
uses: actions/upload-artifact@v4
21+
python-version: "3.10"
22+
- name: 🔨 Build distribution
23+
uses: OctoPrint/actions/build-dist@main
3324
with:
34-
name: dist
35-
path: dist
25+
artifact: dist
3626

3727
pre-commit:
3828
name: 🧹 Pre-commit

0 commit comments

Comments
 (0)