5454 export STATUS_URL=$(echo ${row} | base64 --decode | jq -r ".status" | sed 's/https:\/\/api.github.com//')
5555 gh api ${STATUS_URL} -f state=in_progress -H "Accept: application/vnd.github.flash-preview+json"
5656 done
57-
58- - uses : actions/upload-artifact@v3
57+ - uses : actions/upload-artifact@v4
5958 with :
59+ name : artifact-deployments
6060 path : |-
6161 workspace/gh-deployments.json
6262
7676 with :
7777 cache : " npm"
7878
79- - uses : actions/download-artifact@v3
79+ - uses : actions/download-artifact@v4
8080 with :
8181 path : workspace
82+ merge-multiple : true
8283
8384 - name : Determine Heroku App
8485 uses : " ./.github/actions/set-heroku-app-name"
@@ -106,8 +107,9 @@ jobs:
106107 run : tar -cvf workspace/styles.tar assets/styles/
107108 - name : Compress generated metadata
108109 run : tar -cvf workspace/metadata.tar .generated/metadata/
109- - uses : actions/upload-artifact@v3
110+ - uses : actions/upload-artifact@v4
110111 with :
112+ name : artifact-prepare
111113 path : |-
112114 workspace/design-tokens.tar
113115 workspace/styles.tar
@@ -128,9 +130,10 @@ jobs:
128130 with :
129131 cache : " npm"
130132
131- - uses : actions/download-artifact@v3
133+ - uses : actions/download-artifact@v4
132134 with :
133135 path : workspace
136+ merge-multiple : true
134137
135138 - name : Display structure of downloaded files
136139 run : ls -R
@@ -151,8 +154,9 @@ jobs:
151154 - name : Archive static Storybook
152155 run : tar -czvf workspace/storybook.tar.gz .www/ Procfile config/nginx.conf.erb heroku-start.sh app.json
153156
154- - uses : actions/upload-artifact@v3
157+ - uses : actions/upload-artifact@v4
155158 with :
159+ name : artifact-storybook
156160 path : workspace/storybook.tar.gz
157161
158162 publish-storybook :
@@ -164,9 +168,10 @@ jobs:
164168 - build-storybook
165169
166170 steps :
167- - uses : actions/download-artifact@v3
171+ - uses : actions/download-artifact@v4
168172 with :
169173 path : workspace
174+ merge-multiple : true
170175
171176 - name : Display structure of downloaded files
172177 run : ls -R
@@ -202,7 +207,7 @@ jobs:
202207 echo ${PUBLISH_STORYBOOK_TO}
203208 echo "=============================="
204209 heroku buildpacks -a ${PUBLISH_STORYBOOK_TO} | grep "https://github.com/salesforce-ux/heroku-buildpack-nginx.git#dse" || heroku buildpacks:set https://github.com/salesforce-ux/heroku-buildpack-nginx.git#dse -a ${PUBLISH_STORYBOOK_TO}
205- heroku builds:create --source-tar workspace/artifact/ storybook.tar.gz -a ${PUBLISH_STORYBOOK_TO}
210+ heroku builds:create --source-tar workspace/storybook.tar.gz -a ${PUBLISH_STORYBOOK_TO}
206211
207212 - uses : tibdex/github-app-token@v1
208213 id : get_installation_token
@@ -214,7 +219,7 @@ jobs:
214219 env :
215220 GITHUB_TOKEN : ${{ steps.get_installation_token.outputs.token }}
216221 run : |-
217- for row in $(jq -r '.[] | select(.url | contains("storybook")) | @base64' workspace/artifact/ gh-deployments.json); do
222+ for row in $(jq -r '.[] | select(.url | contains("storybook")) | @base64' workspace/gh-deployments.json); do
218223 export STATUS_URL=$(echo ${row} | base64 --decode | jq -r ".status" | sed 's/https:\/\/api.github.com//')
219224 export SITE_URL=$(echo ${row} | base64 --decode | jq -r ".url")
220225 gh api ${STATUS_URL} -f state=success -f environment_url=${SITE_URL} -H "Accept: application/vnd.github.ant-man-preview+json"
@@ -234,19 +239,21 @@ jobs:
234239 cache : " npm"
235240 node-version : " <=18.17.1"
236241
237- - uses : actions/download-artifact@v3
242+ - uses : actions/download-artifact@v4
238243 with :
239244 path : workspace
245+ merge-multiple : true
246+
240247
241248 - name : Display structure of downloaded files
242249 run : ls -R
243250 working-directory : workspace
244251
245252 - uses : " ./.github/actions/copy-tokens-from-workspace"
246253 - name : Decompress styles
247- run : tar -xvf workspace/artifact/ styles.tar
254+ run : tar -xvf workspace/styles.tar
248255 - name : Decompress metadata
249- run : tar -xvf workspace/artifact/ metadata.tar
256+ run : tar -xvf workspace/metadata.tar
250257
251258 - run : npm ci
252259
@@ -259,8 +266,10 @@ jobs:
259266 run : |-
260267 tar -cvf workspace/design-system-dist.tar .dist/
261268 cd .dist && zip -r dist . && mv dist.zip ../workspace/ && cd ..
262- - uses : actions/upload-artifact@v3
269+
270+ - uses : actions/upload-artifact@v4
263271 with :
272+ name : artifact-dist
264273 path : |-
265274 workspace/design-system-dist.tar
266275 workspace/dist.zip
@@ -287,9 +296,10 @@ jobs:
287296 - name : Display structure of downloaded files
288297 run : ls -la
289298
290- - uses : actions/download-artifact@v3
299+ - uses : actions/download-artifact@v4
291300 with :
292301 path : workspace
302+ merge-multiple : true
293303
294304 - name : Display structure of downloaded files
295305 run : ls -R
@@ -298,7 +308,7 @@ jobs:
298308 - name : Decompress SLDS .dist
299309 run : |-
300310 mkdir -p .slds
301- tar -xvf workspace/artifact/ design-system-dist.tar --directory .slds
311+ tar -xvf workspace/design-system-dist.tar --directory .slds
302312
303313 - uses : actions/setup-node@v3
304314 with :
@@ -325,7 +335,7 @@ jobs:
325335 run : tar -czvf site-next.tar.gz .www/ Procfile config/nginx.conf.erb heroku-start.sh app.json
326336 - name : Deploy to Heroku app
327337 run : |-
328- export HEROKU_APP_NAME=$(cat workspace/artifact/ heroku-app-name.txt)
338+ export HEROKU_APP_NAME=$(cat workspace/heroku-app-name.txt)
329339 echo "=============================="
330340 echo ${HEROKU_APP_NAME}
331341 echo "=============================="
@@ -354,9 +364,10 @@ jobs:
354364 private_key : ${{ secrets.DSE_CI_APP_KEY }}
355365 - uses : actions/checkout@v3
356366
357- - uses : actions/download-artifact@v3
367+ - uses : actions/download-artifact@v4
358368 with :
359369 path : workspace
370+ merge-multiple : true
360371
361372 - name : " Github: attach artifact to release"
362373 env :
@@ -367,7 +378,7 @@ jobs:
367378 gh release view ${VERSION_FROM_TAG} | grep ${VERSION_FROM_TAG}
368379
369380 if [ $? -eq 0 ]; then
370- cp workspace/artifact/ dist.zip workspace/slds-${VERSION_FROM_TAG}.zip
381+ cp workspace/dist.zip workspace/slds-${VERSION_FROM_TAG}.zip
371382 echo "=============================="
372383 echo "» Attaching artifact to release ${VERSION_FROM_TAG}"
373384 gh release upload ${VERSION_FROM_TAG} workspace/slds-${VERSION_FROM_TAG}.zip#"SLDS ${VERSION_FROM_TAG}" --clobber
0 commit comments