2022-11-26 19:59:26 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-11-27 00:38:13 +00:00
|
|
|
- name: build-wasm
|
|
|
|
image: emscripten/emsdk:3.0.0
|
|
|
|
commands:
|
|
|
|
- ./scripts/build-wasm.sh
|
|
|
|
|
2022-11-26 19:59:26 +00:00
|
|
|
- name: build
|
|
|
|
image: node:16.18-bullseye
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
2022-11-27 00:38:13 +00:00
|
|
|
- apt-get install -y jq zip
|
2022-11-26 19:59:26 +00:00
|
|
|
- npm ci
|
|
|
|
- npm run test
|
|
|
|
- ./scripts/build-and-package.sh legacy
|
|
|
|
- ./scripts/build-and-package.sh extension
|
2022-11-26 20:11:13 +00:00
|
|
|
- ./scripts/build-and-package.sh modern
|
2022-11-26 19:59:26 +00:00
|
|
|
|
2022-11-26 23:52:48 +00:00
|
|
|
- name: upload artifact
|
2022-11-27 00:26:21 +00:00
|
|
|
image: debian:bullseye-20221114
|
2022-11-26 23:52:48 +00:00
|
|
|
environment:
|
|
|
|
DRONE_GITEA_SERVER: https://git.unlock-music.dev
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: GITEA_API_KEY
|
|
|
|
commands:
|
2022-11-27 00:26:21 +00:00
|
|
|
- apt-get update && apt-get install -y curl git
|
2022-11-26 23:52:48 +00:00
|
|
|
- ./scripts/upload-packages.sh
|