-
Notifications
You must be signed in to change notification settings - Fork 18
/
.drone.yml
39 lines (35 loc) · 1.05 KB
/
.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
---
kind: pipeline
name: testing
platform:
os: linux
arch: amd64
steps:
- name: install
image: node:13
commands:
- npm install
- name: build
image: node:13
environment:
NODE_ENV: production
commands:
- apt-get update && apt-get -y install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils wget
- npm run build
- name: publish
image: appleboy/gh-pages
pull: always
settings:
username:
from_secret: username
password:
from_secret: password
pages_directory: dist
target_branch: master
target_directory: 2020
remote_url: https://github.com/golangtw/gophercon.github.io.git
when:
branch:
- master
event:
- push