22 lines
803 B
YAML
22 lines
803 B
YAML
steps:
|
|
- name: build
|
|
image: node:22
|
|
environment:
|
|
PNPM_HOME: /var/woodpecker/pnpm
|
|
PARCEL_WORKERS: 0
|
|
commands:
|
|
- apt-get install rustup
|
|
- rustup update stable
|
|
- rustup target add wasm32-unknown-unknown
|
|
- curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
- cargo binstall cargo-metadata
|
|
- corepack enable
|
|
- pnpm install
|
|
- pnpm run build --no-cache
|
|
- rm -rf /var/woodpecker/thesandwich/*
|
|
- mkdir -p /var/woodpecker/thesandwich/
|
|
- mv dist/* /var/woodpecker/thesandwich/
|
|
volumes:
|
|
- /var/woodpecker:/var/woodpecker
|
|
- /usr/share/fonts:/usr/share/fonts
|
|
- /usr/lib/helix/runtime/:/usr/lib/helix/runtime/
|