-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (36 loc) · 973 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
branches:
only:
- docs
- hotfix
before_install:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_3a2ffd558b46_key -iv $encrypted_3a2ffd558b46_iv -in secrets.tar.enc -out secrets.tar -d; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then tar xvf secrets.tar; fi'
install:
- sudo apt-get install tree
- gem install asciidoctor
- sudo pip install Pygments
- sudo pip install -r scripts/requirements.txt
- 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