actions-test/.woodpecker.yml

36 lines
1 KiB
YAML
Raw Normal View History

2023-03-07 21:16:53 +01:00
# .woodpecker.yml
platform: linux/arm64
pipeline:
build:
image: node:18-alpine
commands:
- apk add git zip tar
- npm install
- npm install git+https://jusax.de/git/jusax23/gitea-release.git
2023-03-07 21:34:12 +01:00
- mkdir build
2023-03-07 21:16:53 +01:00
- npm run prepublish
2023-03-07 22:02:19 +01:00
- npm run bundleRelease
- ls build/bundle
2023-03-07 21:16:53 +01:00
- npm run build-linux-arm64
publish:
image: node:18-alpine
commands:
2023-03-07 23:14:34 +01:00
- ls
- ls build
- ls build/bundle
- ls build/bin
2023-03-07 21:16:53 +01:00
- mkdir outbag_server
- mkdir outbag_server/dist
- mkdir upload
- cp 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/*
- cp build/bin/* upload
2023-03-07 22:02:19 +01:00
- npx gitea-release "$${API_URL}" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
2023-03-07 21:16:53 +01:00
when:
event: tag
2023-03-07 21:26:04 +01:00
secrets: [ gitea_token, api_url ]