-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
50 lines (47 loc) · 1.15 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: node_js
node_js:
- "8" # test backwards compatibility (grunt 1.4 requires node >=8)
- node # latest stable
dist: focal # node >= 17 requires ubuntu focal
before_install: npm install -g grunt-cli
install: npm install
before_script: grunt build
before_deploy:
# create zipfile for release
- zip modelleertaal-$TRAVIS_TAG.zip index.html config.js scripts/* modellen/*
# create folder to deploy to gh-pages
- rm -rf _build
- mkdir _build
- cp index.html _build/
- cp config.js _build/
- cp -R scripts _build/
- cp -R modellen _build/
- touch _build/.nojekyll
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: _build
repo: tomkooij/modelleertaal-dev
verbose: true
on:
branch: master
node_js: node
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: _build
verbose: true
on:
branch: master
node_js: node
tags: true
- provider: releases
file:
- modelleertaal-$TRAVIS_TAG.zip
skip_cleanup: true
api_key: $GITHUB_TOKEN
on:
branch: master
node_js: node
tags: true