@@ -132,6 +132,10 @@ jobs:
132132 --output-signature spin.sig \
133133 ${{ matrix.config.targetDir }}/spin${{ matrix.config.extension }}
134134
135+ - name : Generate manifest schema
136+ if : matrix.config.os == 'ubuntu-22.04' && matrix.config.arch == 'amd64'
137+ run : ${{ matrix.config.targetDir }}/spin${{ matrix.config.extension }} maintenance generate-manifest-schema -o manifest.schema.json
138+
135139 - name : package release assets
136140 if : runner.os != 'Windows'
137141 shell : bash
@@ -167,6 +171,13 @@ jobs:
167171 with :
168172 name : spin-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
169173 path : _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip
174+
175+ - name : Upload schema as GitHub artifact
176+ if : matrix.config.os == 'ubuntu-22.04' && matrix.config.arch == 'amd64'
177+ uses : actions/upload-artifact@v4
178+ with :
179+ name : manifest.schema.json
180+ path : manifest.schema.json
170181
171182 checksums :
172183 name : generate release checksums
@@ -206,13 +217,20 @@ jobs:
206217 steps :
207218 - uses : actions/checkout@v3
208219
209- - name : download release assets
220+ - name : download binaries for release assets
210221 uses : actions/download-artifact@v4
211222 with :
212223 pattern : spin-*
213224 path : _dist
214225 merge-multiple : true
215226
227+ - name : download schema for release assets
228+ uses : actions/download-artifact@v4
229+ with :
230+ pattern : manifest.schema.json
231+ path : _dist
232+ merge-multiple : true
233+
216234 - name : check if pre-release
217235 shell : bash
218236 run : |
0 commit comments