2022-11-27 03:59:26 +08:00
|
|
|
---
|
|
|
|
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
|
2022-11-27 04:11:13 +08:00
|
|
|
- ./scripts/build-and-package.sh modern
|
2022-11-27 03:59:26 +08:00
|
|
|
|
2022-11-27 07:52:48 +08:00
|
|
|
- name: upload artifact
|
2022-11-27 08:26:21 +08:00
|
|
|
image: debian:bullseye-20221114
|
2022-11-27 07:52:48 +08:00
|
|
|
environment:
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
commands:
|
2022-11-27 08:26:21 +08:00
|
|
|
- apt-get update && apt-get install -y curl git
|
2022-11-27 07:52:48 +08:00
|
|
|
- ./scripts/upload-packages.sh
|