dblang/.woodpecker.yml

23 lines
743 B
YAML
Raw Permalink Normal View History

2023-01-23 21:28:28 +01:00
# .woodpecker.yml
platform: linux/arm64
pipeline:
build:
image: node:18-alpine
commands:
2023-01-29 21:21:45 +01:00
- apk add git zip tar
2023-01-23 21:28:28 +01:00
- npm install
2023-01-23 21:48:12 +01:00
- npm install git+https://jusax.de/git/jusax23/gitea-release.git
2023-01-23 21:28:28 +01:00
- mkdir build
2023-01-29 21:19:32 +01:00
- mkdir dblang
2023-02-18 16:52:30 +01:00
- mkdir dblang/dist
2023-01-29 21:19:32 +01:00
- mkdir upload
2023-01-23 21:28:28 +01:00
- npm run prepublish
2023-02-18 16:52:30 +01:00
- cp dist/* dblang/dist
2023-02-18 16:50:54 +01:00
- cp package.json dblang
- cp package-lock.json dblang
- cp readme.md dblang
2023-01-29 21:19:32 +01:00
- zip -r upload/DBlang.zip dblang/*
- tar -czvf upload/DBlang.tar.gz dblang/*
- npx gitea-release "https://jusax.de/git/api/v1/" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
2023-01-23 21:28:28 +01:00
secrets: [ gitea_token ]