Skip to content

Commit 9c160ac

Browse files
authored
Merge pull request #106 from siusin/gh-pages
set up auto-publication
2 parents 365bbe3 + 183ed16 commit 9c160ac

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/auto-publish.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches:
6+
- gh-pages
7+
pull_request: {}
8+
9+
jobs:
10+
validate-and-publish:
11+
name: Validate and Publish
12+
runs-on: ubuntu-latest # only linux supported at present
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: w3c/spec-prod@v2
16+
with:
17+
TOOLCHAIN: respec
18+
VALIDATE_LINKS: true
19+
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
20+
W3C_WG_DECISION_URL: "https://lists.w3.org/Archives/Public/public-webapps/2014JulSep/0627.html"
21+
W3C_NOTIFICATIONS_CC: "${{ secrets.CC }}"
22+
W3C_BUILD_OVERRIDE: |
23+
specStatus: WD

.github/workflows/tidy.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tidy document
2+
on:
3+
workflow_dispatch: {}
4+
push:
5+
branches:
6+
- gh-pages
7+
8+
jobs:
9+
tidy:
10+
name: Tidy up
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install tidy/html5
15+
run: sudo apt-get install -y tidy
16+
- run: tidy -config tidyconfig.txt -o index.html index.html
17+
- uses: peter-evans/create-pull-request@v5
18+
with:
19+
title: "Tidied up document using tidy-html5"
20+
commit-message: "chore: tidy up index.html"
21+
branch: html-tidy

0 commit comments

Comments
 (0)