Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable auto-publication #9

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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