web/.drone.yml
Jixun 1fc7142957
Some checks reported errors
continuous-integration/drone/pr Build was killed
ci: use emsdk instead of download emsdk each build.
2022-11-27 00:41:44 +00:00

32 lines
747 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build-wasm
image: emscripten/emsdk:3.0.0
commands:
- ./scripts/build-wasm.sh
- name: build
image: node:16.18-bullseye
commands:
- apt-get update
- apt-get install -y jq zip
- 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: debian:bullseye-20221114
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 git
- ./scripts/upload-packages.sh