Skip to content

Commit 5d2214d

Browse files
committed
👷 Jobs artifact handling + release action config
1 parent 76ad975 commit 5d2214d

File tree

1 file changed

+50
-3
lines changed

1 file changed

+50
-3
lines changed

.github/workflows/dev.yml

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ jobs:
8888
cache-from: type=gha
8989
cache-to: type=gha,mode=max
9090

91+
# Upload the generated files as artifacts
92+
- uses: actions/upload-artifact@v4
93+
with:
94+
name: ${{ env.IMAGE_NAME }}
95+
path: |
96+
${{ env.IMAGE_DIR }}/docker/Dockerfile
97+
${{ env.IMAGE_DIR }}/assets/shell/welcome
98+
if-no-files-found: error
99+
91100
madsciencelab-plugins:
92101
runs-on: ubuntu-latest
93102
needs: [image-details]
@@ -146,6 +155,15 @@ jobs:
146155
cache-from: type=gha
147156
cache-to: type=gha,mode=max
148157

158+
# Upload the generated files as artifacts
159+
- uses: actions/upload-artifact@v4
160+
with:
161+
name: ${{ env.IMAGE_NAME }}
162+
path: |
163+
${{ env.IMAGE_DIR }}/docker/Dockerfile
164+
${{ env.IMAGE_DIR }}/assets/shell/welcome
165+
if-no-files-found: error
166+
149167
madsciencelab-arm-none-eabi:
150168
runs-on: ubuntu-latest
151169
needs: [image-details]
@@ -204,6 +222,15 @@ jobs:
204222
cache-from: type=gha
205223
cache-to: type=gha,mode=max
206224

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+
207234
madsciencelab-arm-none-eabi-plugins:
208235
runs-on: ubuntu-latest
209236
needs: [image-details]
@@ -262,15 +289,35 @@ jobs:
262289
cache-from: type=gha
263290
cache-to: type=gha,mode=max
264291

292+
# Upload the generated files as artifacts
293+
- uses: actions/upload-artifact@v4
294+
with:
295+
name: ${{ env.IMAGE_NAME }}
296+
path: |
297+
${{ env.IMAGE_DIR }}/docker/Dockerfile
298+
${{ env.IMAGE_DIR }}/assets/shell/welcome
299+
if-no-files-found: error
300+
265301
artifacts-prerelease:
266302
runs-on: ubuntu-latest
267-
needs: [madsciencelab, madsciencelab-plugins, madsciencelab-arm-none-eabi, madsciencelab-arm-none-eabi-plugins]
303+
needs:
304+
- madsciencelab
305+
- madsciencelab-plugins
306+
- madsciencelab-arm-none-eabi
307+
- madsciencelab-arm-none-eabi-plugins
268308
permissions:
269309
contents: write
270310

271311
steps:
312+
# Get the repo so we have info for generating release details
313+
- name: 'Checkout GitHub Action'
314+
uses: actions/checkout@v4
315+
316+
# Download all artifacts from the 4 Docker image builds
317+
- uses: actions/download-artifact@v4
318+
272319
# Capture the SHA string
273-
- name: Git commit short SHA as environment variable
320+
- name: 'Git commit short SHA as environment variable'
274321
shell: bash
275322
run: |
276323
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -282,5 +329,5 @@ jobs:
282329
commit: ${{ github.sha }}
283330
tag: ${{ env.SHA_SHORT }}
284331
name: Prerelease-${{ env.SHA_SHORT }}
285-
artifacts: "build/*/docker/Dockerfile,build/*/assets/shell/welcome"
332+
artifacts: "**/Dockerfile,**/welcome"
286333

0 commit comments

Comments
 (0)