This GitHub Action lets you:
During a pull request, the action:
index.html
) or Bikeshed (index.bs
)Additionally, if a commit is pushed to the "main" branch, the action deploys the built specification to /TR/.
# .github/workflows/auto-publish.yml
name: CI
on:
pull_request: {}
push:
branches: [main]
jobs:
main:
name: Build, Validate and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: w3c/spec-prod@v2
with:
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
# Replace following with appropriate value. See options.md for details.
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-group/2014JulSep/1234.html
# Usually, you want the following set too...
W3C_BUILD_OVERRIDE: |
shortName: your-specs-shortname-here
specStatus: WD
Learn from usage examples, including:
Read more about the available options