-
Notifications
You must be signed in to change notification settings - Fork 335
/
.travis.yml
46 lines (41 loc) · 883 Bytes
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
language: python
python:
- "3.9"
branches:
only:
- docs
- hotfix
install:
- sudo apt-get install tree
- gem install asciidoctor
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python get-pip.py
- pip3 install Pygments
- pip3 install -r scripts/requirements.txt
- export PATH=~/.local/bin:$PATH
- cd scripts
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./import_events.py; fi'
- cd ..
- rm -rf public || exit 0
script:
- ./bin/hugo --buildFuture --verbose
- cd public
- touch .nojekyll
- echo "redhatgov.io" > CNAME
- tree workshops
- tree events
- cd ..
- pwd
deploy:
provider: pages
local-dir: public
skip-cleanup: true
github-token: $GITHUB_TOKEN
target-branch: master
verbose: true
on:
branch: docs
notifications:
slack: redhat:9meDz4fnYsXtr3krfjmSXADX
email: