forked from denali-design/denali-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screwdriver.yaml
32 lines (29 loc) · 887 Bytes
/
screwdriver.yaml
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
cache:
pipeline: [~/.npm]
shared:
image: node:12
jobs:
main:
requires: [~pr, ~commit]
steps:
- install: npm ci
- test: npm test
publish:
requires: main
environment:
GIT_SHALLOW_CLONE: false
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- install: npm ci
- publish: |
npm run deploy
touch out/.nojekyll
. /tmp/ci/git-ssh.sh
git remote set-url origin `git remote get-url --push origin`
git add out/
git commit -m "Deploy gh-pages"
git push origin `git subtree split --prefix out master`:gh-pages --force
secrets:
- NPM_TOKEN
- GH_TOKEN
- GIT_KEY_BASE64