actions-test/.woodpecker/.release_code.yml
2023-03-26 12:45:33 +02:00

40 lines
No EOL
895 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
pull: true
commands:
- apt-get update
- apt-get install zip tar -y
- 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
when:
event: tag
depends_on:
- test