From d4ee57ee169ed17701f5fe62d38d4b65a0b79ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 1 Jul 2021 14:41:13 +1000 Subject: [PATCH] chore: enable auto-publish --- .github/workflows/auto-publish.yml | 23 +++++++++++++++++++++++ .github/workflows/tidy.yml | 20 ++++++++++++++++++++ .travis.yml | 27 --------------------------- W3CTRMANIFEST | 1 - 4 files changed, 43 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/auto-publish.yml create mode 100644 .github/workflows/tidy.yml delete mode 100644 .travis.yml delete mode 100644 W3CTRMANIFEST diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml new file mode 100644 index 0000000..2babc35 --- /dev/null +++ b/.github/workflows/auto-publish.yml @@ -0,0 +1,23 @@ +name: Node CI + +on: + push: + branches: + - gh-pages + pull_request: {} + +jobs: + validate-and-publish: + name: Validate and Publish + runs-on: ubuntu-latest # only linux supported at present + steps: + - uses: actions/checkout@v2 + - uses: w3c/spec-prod@v2 + with: + TOOLCHAIN: respec + VALIDATE_LINKS: true + W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }} + W3C_WG_DECISION_URL: "https://lists.w3.org/Archives/Public/public-webapps/2014JulSep/0627.html" + W3C_NOTIFICATIONS_CC: "${{ secrets.CC }}" + W3C_BUILD_OVERRIDE: | + specStatus: WD diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml new file mode 100644 index 0000000..e743c49 --- /dev/null +++ b/.github/workflows/tidy.yml @@ -0,0 +1,20 @@ +name: Tidy document +on: + workflow_dispatch: {} + push: + branches: + - gh-pages + +jobs: + tidy: + name: Tidy up + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - run: brew install tidy-html5 + - run: tidy -config tidyconfig.txt -o index.html index.html + - uses: peter-evans/create-pull-request@v3 + with: + title: "Tidied up document using tidy-html5" + commit-message: "chore: tidy up index.html" + branch: html-tidy diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6ae7fbe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -dist: trusty -language: node_js -node_js: - - lts/* - -branches: - only: - - gh-pages - -env: - global: - - URL="http://w3c.github.io/input-events/W3CTRMANIFEST" - - DECISION="https://lists.w3.org/Archives/Public/public-webapps/2014JulSep/0627.html" -install: - - npm install respec-validator - -script: - - npx respec-validator --gh-user=$GH_USER --gh-token=$GH_TOKEN index.html - -cache: - directories: - - node_modules - -after_success: - - CC="marcos@marcosc.com" - - echo "If it fails, check https://lists.w3.org/Archives/Public/public-tr-notifications/" - - curl "https://labs.w3.org/echidna/api/request" --data "url=$URL" --data "decision=$DECISION" --data "token=$TOKENV2 --cc=marcos@marcos.com" diff --git a/W3CTRMANIFEST b/W3CTRMANIFEST deleted file mode 100644 index 37bb772..0000000 --- a/W3CTRMANIFEST +++ /dev/null @@ -1 +0,0 @@ -index.html?specStatus=WD;shortName=input-events-2 respec