website/.woodpecker.yml

19 lines
710 B
YAML

steps:
build:
image: python
environment:
- NVM_DIR="$HOME/.nvm"
when:
event: [push, pull_request, tag, deployment]
branch: master
commands:
- apt-get update
- apt update && apt-get -y --no-install-recommends install curl tar gnupg curl wget git
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
- source "$NVM_DIR/nvm.sh" && nvm install 16.20.2
- source "$NVM_DIR/nvm.sh" && nvm use 16.20.2
- source "$NVM_DIR/nvm.sh" && node install yarn
- source "$NVM_DIR/nvm.sh" && make env
- source "$NVM_DIR/nvm.sh" && make ci-deploy
secrets: [FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET]