generated from NCKU-CCS/digital-certificate-ncku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
41 lines (37 loc) · 845 Bytes
/
.drone.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
---
kind: pipeline
name: default
steps:
- name: lint Drone YAML
image: sdesbure/yamllint:latest
commands:
- yamllint .drone.yml
- name: lint Typescript
image: node:10
commands:
- yarn install --prod=false
- yarn run lint
- name: export static
image: node:10
commands:
- yarn install --prod=false
- NODE_ENV=production DEPLOY_ENV=github yarn export && touch out/.nojekyll
- name: deploy to github page
image: plugins/gh-pages
settings:
username:
from_secret: github_user
password:
from_secret: github_pawd
ssh_key:
from_secret: github_sshkey
pages_directory: out/
environment:
MAIN_HOST:
from_secret: mainhost
when:
branch:
- master
event:
exclude:
- pull_request