Skip to content

Commit b5e5028

Browse files
committed
👷 Artifacts download fix experiment
1 parent 5d2214d commit b5e5028

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

.github/workflows/release.yml

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ jobs:
8686
cache-from: type=gha
8787
cache-to: type=gha,mode=max
8888

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+
8998
madsciencelab-plugins:
9099
runs-on: ubuntu-latest
91100
needs: [image-details]
@@ -145,6 +154,15 @@ jobs:
145154
cache-from: type=gha
146155
cache-to: type=gha,mode=max
147156

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+
148166
madsciencelab-arm-none-eabi:
149167
runs-on: ubuntu-latest
150168
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]
@@ -263,18 +290,46 @@ jobs:
263290
cache-from: type=gha
264291
cache-to: type=gha,mode=max
265292

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+
266302
artifacts-release:
267303
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
269309
permissions:
270310
contents: write
271311

272312
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+
273328
- uses: ncipollo/release-action@v1
274329
with:
275330
# Defaults to using tag name.
276331
# This workflow is only triggered by tags.
277332
prerelease: false
278333
allowUpdates: true
279-
artifacts: "build/*/docker/Dockerfile,build/*/assets/shell/welcome"
334+
artifacts: "artifacts/**/Dockerfile,artifacts/**/welcome"
280335

0 commit comments

Comments
 (0)