chss/.drone.yml
Ashhhleyyy a89a520c6e
All checks were successful
continuous-integration/drone/push Build is passing
feat(ci): Run eslint on ci
2022-07-07 10:19:48 +01:00

38 lines
789 B
YAML

kind: pipeline
type: docker
name: Build
platform:
os: linux
arch: arm64
steps:
- name: Install dependencies
image: node-pnpm:16-alpine
commands:
- pnpm install --frozen-lockfile
- name: Check formatting
image: node-pnpm:16-alpine
commands:
- pnpm format:check
- name: Lint code
image: node-pnpm:16-alpine
commands:
- pnpm lint
- name: Build site
image: node-pnpm:16-alpine
commands:
- pnpm build
- name: Deploy site
image: alpine
commands:
- apk add curl ca-certificates zip
- cd dist && zip -r ../deploy.zip * && cd ..
- 'curl --fail -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]