-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deploy workflow to use Eleventy build process (#3955)
This replaces the existing files under `.github` (both `workflows` and `scripts`) with a new workflow using the Eleventy build process. - Current behavior RE `conformance-challenges`, `guidelines`, and `requirements` directories is retained - Also ensures necessary CSS is updated under `guidelines` - `techniques`, `understanding`, and `working-examples` are now generated by the Eleventy build process This has positive side effects over what's currently seen on github.io: - Fixes broken styles - Updates any auto-generated cross-links to guidelines to point to 2.2 editor's draft instead of 2.1 - All of the fixes mentioned in #3917
- Loading branch information
1 parent
b2dc10a
commit 485e01b
Showing
7 changed files
with
72 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CI | ||
|
||
# Reference documentation: https://docs.github.com/en/actions/reference | ||
|
||
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
main: | ||
name: deploy (11ty) | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: Checkout gh-pages | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
path: _site | ||
- name: Install Node.js and dependencies | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
node-version-file: '.nvmrc' | ||
- name: Build | ||
env: | ||
WCAG_MODE: editors | ||
run: | | ||
npm i | ||
npm run build | ||
cp guidelines/guidelines.css guidelines/relative-luminance.html _site/guidelines/22 | ||
curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/$GITHUB_REPOSITORY/main/guidelines/index.html -o _site/guidelines/22/index.html -f --retry 3 | ||
curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/$GITHUB_REPOSITORY/main/requirements/22/index.html -o _site/requirements/22/index.html -f --retry 3 | ||
curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/$GITHUB_REPOSITORY/main/conformance-challenges/index.html -o _site/conformance-challenges/index.html -f --retry 3 | ||
- name: Push | ||
working-directory: _site | ||
run: | | ||
git config user.email 87540780+w3cgruntbot@users.noreply.github.com | ||
git config user.name w3cgruntbot | ||
git add -A . | ||
git commit -m ":robot: Deploy to GitHub Pages: $GITHUB_SHA from branch $GITHUB_REF" | ||
git push origin gh-pages |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters