forked from bitwarden/help
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (43 loc) · 1019 Bytes
/
appveyor.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
image:
- Ubuntu1804
branches:
except:
- gh-pages
stack: node 10, ruby 2.6
init:
- sh: |
if [ "${DEBUG_SSH}" == "true" ]
then
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi
install:
- gem install jekyll bundler
- sh: |
if [ "${GH_TOKEN}" != "" ]
then
git config --global credential.helper store
echo "https://${GH_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials
git config --global user.email "ci@bitwarden.com"
git config --global user.name "Bitwarden CI"
fi
before_build:
- node --version
- npm --version
- ruby --version
- jekyll --version
build_script:
- npm install
- sh: |
if [ "${GH_TOKEN}" != "" ]
then
npm run deploy
else
npm run build
fi
on_finish:
- sh: |
if [ "${DEBUG_SSH}" == "true" ]
then
export APPVEYOR_SSH_BLOCK=true
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi