chss/.drone.yml
Ashhhleyyy 40aa200cbb
Some checks failed
continuous-integration/drone/push Build is failing
feat(ci): Deploy built site
2022-07-05 10:45:31 +01:00

29 lines
609 B
YAML

kind: pipeline
type: docker
name: Build
platform:
os: linux
arch: arm64
steps:
- name: Build and check formatting
image: node:14-alpine
commands:
- yarn global add pnpm
- pnpm install --frozen-lockfile
- pnpm build
- pnpm format:check
- name: Deploy site
image: alpine
commands:
- apk add curl ca-certificates zip
- cd dist && zip -r ../deploy.zip * && cd ..
- 'curl -F file=@deploy.zip -H "Authorization: $DEPLOY_TOKEN" https://projects.ashhhleyyy.dev/chss'
environment:
DEPLOY_TOKEN:
from_secret: deploy_token
trigger:
event: [push]
branch: [main]