Skip to content

Commit

Permalink
chore: enable auto-pub via GH actions (w3c#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Aug 26, 2021
1 parent b9e0517 commit aa90049
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 42 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://w3c.github.io/spec-prod/
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
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
W3C_WG_DECISION_URL: "https://www.w3.org/2016/04/14-wpwg-minutes.html#item02"
W3C_NOTIFICATIONS_CC: "${{ secrets.CC }}"
W3C_BUILD_OVERRIDE: |
shortName: payment-method-basic-card
specStatus: NOTE
20 changes: 20 additions & 0 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
@@ -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: "chore(tidy): tidy up document"
commit-message: "Tidied up document using tidy-html5"
branch: html-tidy
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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: sidvishnoi/spec-prod@v1
with:
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 }}"
21 changes: 21 additions & 0 deletions github/workflows/pr-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .github/workflows/pr-push.yml
name: CI
on:
pull_request: {}
push:
branches: [main]
jobs:
main:
name: Build, Validate and Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: w3c/spec-prod@v2
with:
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
# Replace following with appropriate value. See options.md for details.
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-group/2014JulSep/1234.html
# Usually, you want the following set too...
W3C_BUILD_OVERRIDE: |
shortName: your-specs-shortname-here
specStatus: WD
39 changes: 22 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
<title>
Payment Method: Basic Card
</title>
<meta charset='utf-8'>
<script src='https://www.w3.org/Tools/respec/respec-w3c' async class=
'remove'></script>
<script class='remove'>
<meta charset="utf-8">
<script src="https://www.w3.org/Tools/respec/respec-w3c" async class=
"remove"></script>
<script class="remove">
const respecConfig = {
editors: [
{
name: "Ian Jacobs",
url: "http://www.w3.org/People/Jacobs/",
company: "W3C",
companyURL: "https://www.w3.org/",
w3cid: 2175,
},
],
formerEditors: [
{
name: "Marcos Cáceres",
company: "W3C",
Expand All @@ -20,6 +29,11 @@
company: "Google",
w3cid: 52873,
},
{
name: "Adrian Bateman",
company: "Microsoft Corporation",
w3cid: 42763,
},
{
name: "Zach Koch",
company: "Google",
Expand All @@ -30,41 +44,32 @@
company: "Facebook",
w3cid: 88345,
},
{
name: "Adrian Bateman",
company: "Microsoft Corporation",
w3cid: 42763,
retiredDate: "2018-10-04",
},
],
doJsonLd: true,
shortName: "payment-method-basic-card",
github: "w3c/payment-method-basic-card",
noRecTrack: true,
previousMaturity: "FPWD",
previousPublishDate: "2016-04-21",
specStatus: "ED",
testSuiteURI: "https://w3c-test.org/payment-method-basic-card/",
group: "payments",
xref: "web-platform",
mdn: true,
};
</script>
</head>
<body data-cite="payment-method-id payment-request">
<section id='abstract'>
<section id="abstract">
<p>
This specification describes data structures and formats, and a simple
processing model, to facilitate card-based payments on the Web. It is
used by other specifications to facilitate monetary transactions with a
"basic-card", such as credit, debit, or prepaid card.
</p>
</section>
<section id='sotd'>
<section id="sotd">
<p>
This is a work in progress.
</p>
</section>
<section class='informative'>
<section class="informative">
<h2>
Introduction
</h2>
Expand Down

0 comments on commit aa90049

Please sign in to comment.