Sam Therapy
0fc0f82939
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
54 lines
1,007 B
YAML
54 lines
1,007 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Build & Deploy
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: Clone
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
recursive: true
|
|
|
|
- name: Build site
|
|
image: denoland/deno
|
|
commands:
|
|
- deno task build
|
|
depends_on:
|
|
- "Clone"
|
|
|
|
- name: Deploy to Deno Deploy
|
|
image: git.froth.zone/sam/drone-deno-deploy
|
|
environment:
|
|
DENO_DEPLOY_TOKEN:
|
|
from_secret: DENO_DEPLOY_TOKEN
|
|
settings:
|
|
project: samme
|
|
entrypoint: server.ts
|
|
production: true
|
|
include: dist,server.ts
|
|
depends_on:
|
|
- "Build site"
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
- name: Push to Pages
|
|
image: plugins/gh-pages
|
|
settings:
|
|
remote_url:
|
|
from_secret: URL
|
|
target_branch: pages
|
|
pages_directory: dist/
|
|
user_name: Sam Therapy
|
|
user_email: sam@samtherapy.net
|
|
depends_on:
|
|
- "Build site"
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|