mirror of
https://git.unlock-music.dev/um/web.git
synced 2024-12-29 23:25:02 +08:00
28 lines
673 B
YAML
28 lines
673 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:16.18-bullseye
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install -y cmake jq zip
|
|
- ./scripts/build-wasm.sh
|
|
- npm ci
|
|
- npm run test
|
|
- ./scripts/build-and-package.sh legacy
|
|
- ./scripts/build-and-package.sh extension
|
|
- ./scripts/build-and-package.sh modern
|
|
|
|
- name: upload artifact
|
|
image: busybox:1.34-glibc
|
|
environment:
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
GITEA_API_KEY:
|
|
from_secret: GITEA_API_KEY
|
|
commands:
|
|
- apt-get update && apt-get install -y curl
|
|
- ./scripts/upload-packages.sh
|