File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Scheme previews
1+ name : Layout previews
22
33# Builds the current production site (main) at the root and hosts the four
4- # redesign colour schemes under /preview/<scheme >/ so they can be compared side
5- # by side. The live site at the root stays exactly as main produces it.
4+ # redesign layout paradigms under /preview/<name >/ so they can be compared
5+ # side by side. The live site at the root stays exactly as main produces it.
66
77on :
88 push :
@@ -40,15 +40,15 @@ jobs:
4040 mkdir -p "$GITHUB_WORKSPACE/_site"
4141 cp -r dist/. "$GITHUB_WORKSPACE/_site/"
4242
43- - name : Build scheme previews
43+ - name : Build layout previews
4444 run : |
45- for s in cyan-ink ember light- editorial mono-lime ; do
46- rm -rf scheme
47- git clone --depth 1 --branch "redesign/$s " \
48- "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git" scheme
49- (cd scheme && npm ci && PREVIEW_BASE="/preview/$s /" npm run build)
50- mkdir -p "$GITHUB_WORKSPACE/_site/preview/$s "
51- cp -r scheme /dist/. "$GITHUB_WORKSPACE/_site/preview/$s /"
45+ for name in spatial horizontal editorial terminal ; do
46+ rm -rf layout
47+ git clone --depth 1 --branch "redesign/layout-$name " \
48+ "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git" layout
49+ (cd layout && npm ci && PREVIEW_BASE="/preview/$name /" npm run build)
50+ mkdir -p "$GITHUB_WORKSPACE/_site/preview/$name "
51+ cp -r layout /dist/. "$GITHUB_WORKSPACE/_site/preview/$name /"
5252 done
5353
5454 - uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments