37 lines
829 B
YAML
37 lines
829 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: Create bundle
|
||
|
image: alpine
|
||
|
commands:
|
||
|
- scripts/build-release.sh
|
||
|
- name: Push bundle
|
||
|
image: alpine
|
||
|
commands:
|
||
|
- apk add curl ca-certificates
|
||
|
- 'curl --fail --upload-file @comicbox.tar.gz --user robot:$ROBOT_TOKEN https://git.ashhhleyyy.dev/api/packages/robot/generic/comicbox/0.1.0+git.${DRONE_COMMIT_SHA:0:8}/comicbox.tar.gz'
|
||
|
|
||
|
trigger:
|
||
|
event: [push]
|
||
|
branch: [main]
|