Skip to content

Pin definitions when building an older version (#4155) #89

Pin definitions when building an older version (#4155)

Pin definitions when building an older version (#4155) #89

Workflow file for this run

name: Push to gh-pages branch
# 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
token: ${{ secrets.W3CGRUNTBOT_TOKEN }}
- 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
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: _site
branch: gh-pages
commit_user_name: w3cgruntbot
commit_user_email: [email protected]
commit_author: "w3cgruntbot <[email protected]>"
commit_message: ":robot: Deploy to GitHub Pages: ${{ github.sha }} from branch ${{ github.ref }}"
skip_fetch: true
skip_checkout: true