feat(ci): add drone workflow
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ed3bba242e
commit
f34ca830fa
1 changed files with 31 additions and 0 deletions
31
.drone.yml
Normal file
31
.drone.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
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: 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 --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/doodly/$DRONE_COMMIT_SHA/doodly.zip'
|
||||||
|
environment:
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: GITEA_TOKEN
|
||||||
|
trigger:
|
||||||
|
event: [push]
|
||||||
|
branch: [main]
|
Loading…
Reference in a new issue