Skip to content

Commit 6f1ebfa

Browse files
committed
Previews: build the four layout branches under /preview
1 parent 976bb6d commit 6f1ebfa

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎.github/workflows/previews.yml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

77
on:
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

0 commit comments

Comments
 (0)