forked from w3c/silver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.54 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: node_js
env:
global:
- GH_REF: github.com/w3c/silver.git
git:
depth: 3
branches:
only:
main
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "michael-n-cooper"
script:
- cd ../..
- mkdir gh-pages
- cd gh-pages
- git clone --depth=1 --branch=gh-pages https://github.com/w3c/silver.git
- cd silver
- cp -r ../../w3c/silver/index.html ../../w3c/silver/assets ../../w3c/silver/prototypes ../../w3c/silver/requirements .
- cp -r ../../w3c/silver/guidelines/explainers ../../w3c/silver/guidelines/methods ../../w3c/silver/guidelines/img ../../w3c/silver/guidelines/guidelines.css guidelines
- cp -r ../../w3c/silver/subgroups .
- curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/w3c/silver/main/guidelines/index.html -o guidelines/index.html -f --retry 3
- curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/w3c/silver/main/guidelines/explainer.html -o guidelines/explainer.html -f --retry 3
- curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/w3c/silver/main/requirements/index.html -o requirements/index.html -f --retry 3
- curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/w3c/silver/main/prototypes/ConformancePrototype/index.html -o prototypes/ConformancePrototype/index.html -f --retry 3
after_success:
- git add -A .
- git commit -m "Generated by TRAVIS-CI"
- git push "https://${GH_TOKEN}@${GH_REF}" gh-pages > /dev/null 2>&1