-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (27 loc) · 1.01 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
language: node_js
env:
global:
- GH_REF: github.com/A11yReadTech/ARC.git
git:
depth: 4
branches:
only:
main
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Myndex"
script:
- cd ../..
- mkdir page-stage
- cd page-stage
- git clone --depth=1 --branch=gh-pages https://github.com/A11yReadTech/ARC.git
- cd ARC
- cp -r ../../A11yReadTech/ARC/index.html ../../A11yReadTech/ARC/assets ../../A11yReadTech/ARC/css ../../A11yReadTech/ARC/js ../../A11yReadTech/ARC/img .
- cp -r ../../A11yReadTech/ARC/img guidelines
- cp -r ../../A11yReadTech/ARC/tests ../../A11yReadTech/ARC/guides ../../A11yReadTech/ARC/objectives .
- curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://raw.githack.com/A11yReadTech/ARC/main/index.html -o guidelines/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
skip_cleanup: true