|
34 | 34 | extraArgs: "--features openssl/vendored",
|
35 | 35 | target: "",
|
36 | 36 | targetDir: "target/release",
|
| 37 | + generateManifestSchema: true, |
37 | 38 | }
|
38 | 39 | - {
|
39 | 40 | os: "ubuntu-22.04",
|
@@ -132,6 +133,10 @@ jobs:
|
132 | 133 | --output-signature spin.sig \
|
133 | 134 | ${{ matrix.config.targetDir }}/spin${{ matrix.config.extension }}
|
134 | 135 |
|
| 136 | + - name: Generate manifest schema |
| 137 | + if: matrix.config.generateManifestSchema |
| 138 | + run: ${{ matrix.config.targetDir }}/spin${{ matrix.config.extension }} maintenance generate-manifest-schema -o manifest.schema.json |
| 139 | + |
135 | 140 | - name: package release assets
|
136 | 141 | if: runner.os != 'Windows'
|
137 | 142 | shell: bash
|
@@ -167,6 +172,13 @@ jobs:
|
167 | 172 | with:
|
168 | 173 | name: spin-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}
|
169 | 174 | path: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip
|
| 175 | + |
| 176 | + - name: Upload schema as GitHub artifact |
| 177 | + if: matrix.config.generateManifestSchema |
| 178 | + uses: actions/upload-artifact@v4 |
| 179 | + with: |
| 180 | + name: manifest.schema.json |
| 181 | + path: manifest.schema.json |
170 | 182 |
|
171 | 183 | checksums:
|
172 | 184 | name: generate release checksums
|
@@ -206,13 +218,20 @@ jobs:
|
206 | 218 | steps:
|
207 | 219 | - uses: actions/checkout@v3
|
208 | 220 |
|
209 |
| - - name: download release assets |
| 221 | + - name: download binaries for release assets |
210 | 222 | uses: actions/download-artifact@v4
|
211 | 223 | with:
|
212 | 224 | pattern: spin-*
|
213 | 225 | path: _dist
|
214 | 226 | merge-multiple: true
|
215 | 227 |
|
| 228 | + - name: download schema for release assets |
| 229 | + uses: actions/download-artifact@v4 |
| 230 | + with: |
| 231 | + pattern: manifest.schema.json |
| 232 | + path: _dist |
| 233 | + merge-multiple: true |
| 234 | + |
216 | 235 | - name: check if pre-release
|
217 | 236 | shell: bash
|
218 | 237 | run: |
|
|
0 commit comments