|
86 | 86 | cache-from: type=gha
|
87 | 87 | cache-to: type=gha,mode=max
|
88 | 88 |
|
| 89 | + # Upload the generated files as artifacts |
| 90 | + - uses: actions/upload-artifact@v4 |
| 91 | + with: |
| 92 | + name: ${{ env.IMAGE_NAME }} |
| 93 | + path: | |
| 94 | + ${{ env.IMAGE_DIR }}/docker/Dockerfile |
| 95 | + ${{ env.IMAGE_DIR }}/assets/shell/welcome |
| 96 | + if-no-files-found: error |
| 97 | + |
89 | 98 | madsciencelab-plugins:
|
90 | 99 | runs-on: ubuntu-latest
|
91 | 100 | needs: [image-details]
|
@@ -145,6 +154,15 @@ jobs:
|
145 | 154 | cache-from: type=gha
|
146 | 155 | cache-to: type=gha,mode=max
|
147 | 156 |
|
| 157 | + # Upload the generated files as artifacts |
| 158 | + - uses: actions/upload-artifact@v4 |
| 159 | + with: |
| 160 | + name: ${{ env.IMAGE_NAME }} |
| 161 | + path: | |
| 162 | + ${{ env.IMAGE_DIR }}/docker/Dockerfile |
| 163 | + ${{ env.IMAGE_DIR }}/assets/shell/welcome |
| 164 | + if-no-files-found: error |
| 165 | + |
148 | 166 | madsciencelab-arm-none-eabi:
|
149 | 167 | runs-on: ubuntu-latest
|
150 | 168 | needs: [image-details]
|
@@ -204,6 +222,15 @@ jobs:
|
204 | 222 | cache-from: type=gha
|
205 | 223 | cache-to: type=gha,mode=max
|
206 | 224 |
|
| 225 | + # Upload the generated files as artifacts |
| 226 | + - uses: actions/upload-artifact@v4 |
| 227 | + with: |
| 228 | + name: ${{ env.IMAGE_NAME }} |
| 229 | + path: | |
| 230 | + ${{ env.IMAGE_DIR }}/docker/Dockerfile |
| 231 | + ${{ env.IMAGE_DIR }}/assets/shell/welcome |
| 232 | + if-no-files-found: error |
| 233 | + |
207 | 234 | madsciencelab-arm-none-eabi-plugins:
|
208 | 235 | runs-on: ubuntu-latest
|
209 | 236 | needs: [image-details]
|
@@ -263,18 +290,46 @@ jobs:
|
263 | 290 | cache-from: type=gha
|
264 | 291 | cache-to: type=gha,mode=max
|
265 | 292 |
|
| 293 | + # Upload the generated files as artifacts |
| 294 | + - uses: actions/upload-artifact@v4 |
| 295 | + with: |
| 296 | + name: ${{ env.IMAGE_NAME }} |
| 297 | + path: | |
| 298 | + ${{ env.IMAGE_DIR }}/docker/Dockerfile |
| 299 | + ${{ env.IMAGE_DIR }}/assets/shell/welcome |
| 300 | + if-no-files-found: error |
| 301 | + |
266 | 302 | artifacts-release:
|
267 | 303 | runs-on: ubuntu-latest
|
268 |
| - needs: [madsciencelab, madsciencelab-plugins, madsciencelab-arm-none-eabi, madsciencelab-arm-none-eabi-plugins] |
| 304 | + needs: |
| 305 | + - madsciencelab |
| 306 | + - madsciencelab-plugins |
| 307 | + - madsciencelab-arm-none-eabi |
| 308 | + - madsciencelab-arm-none-eabi-plugins |
269 | 309 | permissions:
|
270 | 310 | contents: write
|
271 | 311 |
|
272 | 312 | steps:
|
| 313 | + # Get the repo so we have info for generating release details |
| 314 | + - name: 'Checkout GitHub Action' |
| 315 | + uses: actions/checkout@v4 |
| 316 | + |
| 317 | + # Download all artifacts from the 4 Docker image builds |
| 318 | + - uses: actions/download-artifact@v4 |
| 319 | + with: |
| 320 | + path: artifacts |
| 321 | + |
| 322 | + # Capture the SHA string |
| 323 | + - name: 'Git commit short SHA as environment variable' |
| 324 | + shell: bash |
| 325 | + run: | |
| 326 | + echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV |
| 327 | +
|
273 | 328 | - uses: ncipollo/release-action@v1
|
274 | 329 | with:
|
275 | 330 | # Defaults to using tag name.
|
276 | 331 | # This workflow is only triggered by tags.
|
277 | 332 | prerelease: false
|
278 | 333 | allowUpdates: true
|
279 |
| - artifacts: "build/*/docker/Dockerfile,build/*/assets/shell/welcome" |
| 334 | + artifacts: "artifacts/**/Dockerfile,artifacts/**/welcome" |
280 | 335 |
|
0 commit comments