File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,10 @@ jobs:
16
16
uses : actions/setup-python@v5
17
17
with :
18
18
python-version : " 3.10"
19
- - name : 🏗 Install build dependencies
20
- run : >-
21
- python -m pip install wheel build twine --user
22
- - name : 🔨 Build a binary wheel and a source tarball
23
- run : >-
24
- python -m build
25
- - name : 🧪 Check that twine is happy with it
26
- run : >-
27
- twine check --strict dist/*
28
- - name : ⬆ Upload build result
29
- uses : actions/upload-artifact@v4
19
+ - name : 🔨 Build distribution
20
+ uses : OctoPrint/actions/build-dist@main
30
21
with :
31
- name : dist
32
- path : dist
22
+ artifact : dist
33
23
34
24
pre-commit :
35
25
name : 🧹 Pre-commit
@@ -114,6 +104,10 @@ jobs:
114
104
with :
115
105
name : dist
116
106
path : dist
107
+ - name : 🧹 Remove some stuff that won't make it through twine check
108
+ run : |
109
+ rm dist/*.source.tar.gz
110
+ rm dist/sha512sums.txt
117
111
- name : 📦 Publish to index
118
112
uses : pypa/gh-action-pypi-publish@release/v1
119
113
with :
@@ -135,5 +129,9 @@ jobs:
135
129
with :
136
130
name : dist
137
131
path : dist
132
+ - name : 🧹 Remove some stuff that won't make it through twine check
133
+ run : |
134
+ rm dist/*.source.tar.gz
135
+ rm dist/sha512sums.txt
138
136
- name : 📦 Publish to index
139
137
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments