actions-test/.woodpecker/.release_code.yml

34 lines
802 B
YAML
Raw Normal View History

2023-03-26 11:56:46 +02:00
# .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