nMan/.woodpecker.yml

23 lines
723 B
YAML
Raw Normal View History

2023-02-25 17:38:41 +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
- mkdir build
- mkdir nman
- mkdir nman/dist
- mkdir upload
- npm run prepublish
- cp dist/* nman/dist
- cp package.json nman
- cp package-lock.json nman
- cp readme.md nman
- zip -r upload/nMan.zip nman/*
- tar -czvf upload/nMan.tar.gz nman/*
- npx gitea-release "https://jusax.de/git/api/v1/" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
secrets: [ gitea_token ]