Skip to content

Commit

Permalink
Added automatic publishing on /TR
Browse files Browse the repository at this point in the history
Added a job ‘publish’ based on the example in https://github.com/w3c/echidna/wiki/How-to-use-Echidna to automatically publish spec.html as a WD on /TR when a change is pushed.
  • Loading branch information
bert-github authored Oct 28, 2024
1 parent 333716c commit 0ebe31b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Based on
# https://github.com/w3c/echidna/wiki/How-to-use-Echidna
# and
# https://w3c.github.io/spec-prod/#examples
# Create a file called .github/workflows/auto-publish.yml
name: CI
on:
pull_request: {}
push:
branches: [main]
jobs:
main:
name: Deploy to GitHub pages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
git fetch
git checkout gh-pages
Expand All @@ -22,4 +25,19 @@ jobs:
SOURCE: spec.html
DESTINATION: index.html
VALIDATE_MARKUP: false
publish:
name: Build, Validate and Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: w3c/spec-prod@v2
with:
TOOLCHAIN: respec
SOURCE: spec.html
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
W3C_WG_DECISION_URL: hhttps://www.w3.org/mid/CAESRWkCboGW4E4RmntSs7UZWx9UZxmGH=1GNKq1Gg7MyfQcMdA@mail.gmail.com
W3C_BUILD_OVERRIDE: |
specStatus: WD
shortName: mathml4

0 comments on commit 0ebe31b

Please sign in to comment.