34 lines
No EOL
802 B
YAML
34 lines
No EOL
802 B
YAML
# .woodpecker.yml
|
|
platform: linux/arm64
|
|
|
|
pipeline:
|
|
build:
|
|
image: node:18-alpine
|
|
commands:
|
|
- apk add git
|
|
- npm ci
|
|
- mkdir build
|
|
- npm run prepublish
|
|
buildBin:
|
|
image: node:18
|
|
commands:
|
|
- mkdir outbag_server
|
|
- mkdir outbag_server/dist
|
|
- mkdir upload
|
|
- cp -r dist/* outbag_server/dist
|
|
- cp package.json outbag_server
|
|
- cp package-lock.json outbag_server
|
|
- cp readme.md outbag_server
|
|
- zip -r upload/OutbagServer.zip outbag_server/*
|
|
- tar -czvf upload/OutbagServer.tar.gz outbag_server/*
|
|
publish:
|
|
image: woodpeckerci/plugin-gitea-release
|
|
settings:
|
|
base_url: https://codeberg.org
|
|
files:
|
|
- "upload/*"
|
|
api_key:
|
|
from_secret: gitea_token
|
|
|
|
depends_on:
|
|
- test |