Skip to content

Initial Commit

Initial Commit #1

name: Publish Protocol
on:
workflow_dispatch: {}
pull_request_target:
branches-ignore:
- gh-pages
paths:
- src/boilerplate/**
- src/examples/**
- src/protocol/**
- src/*.html
- src/*.include
- src/protocol.bs
types:
- closed
push:
branches-ignore:
- gh-pages
paths:
- src/boilerplate/**
- src/examples/**
- src/protocol/**
- src/*.html
- src/*.include
- src/protocol.bs
jobs:
publish-protocol:
name: Publish Protocol to GitHub pages
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ !(github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == false) }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Publish main with Bikeshed
uses: w3c/spec-prod@v2
with:
GH_PAGES_BRANCH: gh-pages
TOOLCHAIN: bikeshed
SOURCE: src/protocol.bs
DESTINATION: ${{ github.ref_name != 'main' && format('branch/{0}/', github.ref_name) || ''}}protocol/index.html