Skip to content

Commit

Permalink
Enable auto-publication (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust authored Jul 23, 2024
1 parent 9d2663e commit 990e6a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Automatic publication
on:
# Worflow runs on pull requests where it makes sure that the spec can be
# generated, that markup and IDL are valid, as well as on pushes to the
# default branch where it also deploys the generated spec to the gh-pages
# branch and publishes the result to /TR.
# The "workflow_dispatch" hook allows repo admins to trigger the workflow
# manually if needed.
pull_request: {}
push:
branches: [main]
workflow_dispatch:

jobs:
main:
name: Build, validate and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build, validate and deploy spec
uses: w3c/spec-prod@v2
with:
TOOLCHAIN: respec
SOURCE: index.html
DESTINATION: index.html
GH_PAGES_BRANCH: gh-pages
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
W3C_WG_DECISION_URL: https://github.com/w3c/media-wg/issues/27
W3C_BUILD_OVERRIDE: |
specStatus: DRY

0 comments on commit 990e6a3

Please sign in to comment.