chore: tidy up index.html #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Respec HTML | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Source | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install Respec | |
run: | | |
echo '{}' > package.json | |
npm install respec | |
- name: Prepare Build Folder | |
run: | | |
rm -rf build | |
mkdir -p build/format-registry/initdata | |
mkdir -p build/format-registry/stream | |
- name: Generate HTML | |
run: | | |
npx respec2html encrypted-media-respec.html -o build/index.html | |
npx respec2html hdcp-version-registry-respec.html -o build/hdcp-version-registry.html | |
npx respec2html format-registry/initdata/cenc-respec.html -o build/format-registry/initdata/cenc.html | |
npx respec2html format-registry/initdata/index-respec.html -o build/format-registry/initdata/index.html | |
npx respec2html format-registry/initdata/keyids-respec.html -o build/format-registry/initdata/keyids.html | |
npx respec2html format-registry/initdata/webm-respec.html -o build/format-registry/initdata/webm.html | |
npx respec2html format-registry/stream/index-respec.html -o build/format-registry/stream/index.html | |
npx respec2html format-registry/stream/mp4-respec.html -o build/format-registry/stream/mp4.html | |
npx respec2html format-registry/stream/webm-respec.html -o build/format-registry/stream/webm.html | |
- name: Update MarkDown Files | |
run: | | |
cp LICENSE.md README.md build/ | |
echo -e "\n\nThis branch holds the generated content served via GitHub Pages." >> build/README.md | |
- name: Add Other Source Files | |
run: cp eme.css stack_overview.svg build/ | |
- name: Deploy to GitHub Pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: build | |
CLEAN: true # Automatically remove deleted files |