webzone/.drone.yml

49 lines
968 B
YAML

kind: pipeline
type: docker
name: Build & Deploy
steps:
- name: Build site
image: denoland/deno
commands:
- deno task build
- 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: serve.ts
production: true
include: _site,serve.ts,deno.json
import_map: deno.json
depends_on:
- "Build site"
when:
branch:
- master
event:
- push
- name: Push to Pages
image: plugins/gh-pages
settings:
remote_url:
from_secret: URL
password:
from_secret: PASS
target_branch: pages
pages_directory: _site
copy_contents: true
user_name: Sam Therapy
user_email: sam@samtherapy.net
depends_on:
- "Build site"
when:
branch:
- master
event:
- push