Skip to content

Commit 8523f13

Browse files
committed
Generate with the text macro that triggers the redirect. Also generate directly to the desired output file.
1 parent 52077ef commit 8523f13

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/build-specs.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,14 @@ jobs:
4141
- name: Build specs
4242
run: |
4343
set -e
44-
for file in ./**/*.bs; do
44+
for file in ./**/Overview.bs; do
4545
# We use `date` to build a YYYY-MM-DD date rather than using git's
4646
# `--format=%as` because we want the date not to depend on the
4747
# committer's timezone. We use UTC to avoid depending on the build
4848
# runner's timezone as well.
4949
TIMESTAMP="$(git log -1 --format=%at "$file")"
5050
SHORT_DATE="$(date --date=@"$TIMESTAMP" --utc +%F)"
51-
bikeshed -f --md-date="$SHORT_DATE" spec "$file"
52-
done
53-
- name: Rename to index.html
54-
# The default pages for directories are assumed to be Overview.html, but
55-
# that doesn't work for Github Pages. So we copy them as index.html.
56-
run: |
57-
set -e
58-
for file in ./**/Overview.html; do
59-
cp "$file" "$(dirname "$file")/index.html"
51+
bikeshed -f spec "$file" "${file%Overview.bs}index.html" --md-date="$SHORT_DATE" --md-Text-Macro="BUILTBYGITHUBCI foo"
6052
done
6153
- name: Build index & symlinks
6254
run: python ./bin/build-index.py

0 commit comments

Comments
 (0)