-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
37 lines (31 loc) · 951 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
dist: trusty
sudo: false
language: node_js
node_js:
- "10"
script:
- echo 'Build step (Open me for details)...' && echo -en 'travis_fold:start:script.1\\r'
- npm run-script generate-locals
- npm run-script generate-redirects
# Check that ci:import at least compiles
- if [ "$TRAVIS_PULL_REQUEST_BRANCH" ]; then node scripts/spreadsheet-import/index.js --help; fi
- if [ "$TRAVIS_PULL_REQUEST_BRANCH" ]; then npm run-script build; fi
- echo -en 'travis_fold:end:script.1\\r'
stages:
- name:
before_deploy:
# - openssl aes-256-cbc -in secrets.tar.enc -out secrets.tar -d -pass "env:spreadsheet_read"
# - tar xvf secrets.tar
# - npm run-script ci:import
- npm run-script build
- cp contents/README.md build/
- node tests/post-build.js
deploy:
provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
local_dir: build
keep-history: true
repo: cramforce/ghpages.2019.jsconf.eu
on:
branch: master