forked from kodeklubben/oppgaver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (27 loc) · 838 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
language: node_js
branches:
only:
- master
stages:
- name: deploy
if: branch = master AND fork = false AND type = push
before_install:
- git clone --depth=1 --branch=master https://github.com/kodeklubben/codeclub-viewer.git ../codeclub-viewer
- cd ../codeclub-viewer
- nvm install
cache: yarn
script:
- yarn build:travis
# Deploy only runs for push builds (merges), never for PR builds:
# https://docs.travis-ci.com/user/deployment#pull-requests
deploy:
provider: pages
github_token: $GITHUB_TOKEN_OPPGAVER_MASTER_NORWEGIANKIWI
skip_cleanup: true # Don't delete artifacts created during build
keep_history: true # Don't allow force push
local_dir: ../codeclub-viewer/dist
repo: kodeklubben/kodeklubben.github.io
target-branch: master
fqdn: oppgaver.kidsakoder.no # CNAME
on:
branch: master