release ci
This commit is contained in:
parent
b7251429b6
commit
44b7cb2875
1 changed files with 29 additions and 11 deletions
|
@ -19,15 +19,9 @@ pipeline:
|
||||||
- node tests/post.js ci
|
- node tests/post.js ci
|
||||||
buildBin:
|
buildBin:
|
||||||
image: node:18
|
image: node:18
|
||||||
commands:
|
|
||||||
- npm run build-all
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
publish:
|
|
||||||
image: node:18-alpine
|
|
||||||
commands:
|
commands:
|
||||||
- apk add git zip tar
|
- apk add git zip tar
|
||||||
- npm install git+https://jusax.de/git/jusax23/gitea-release.git
|
- npm run build-all
|
||||||
- mkdir outbag_server
|
- mkdir outbag_server
|
||||||
- mkdir outbag_server/dist
|
- mkdir outbag_server/dist
|
||||||
- mkdir upload
|
- mkdir upload
|
||||||
|
@ -38,10 +32,34 @@ pipeline:
|
||||||
- zip -r upload/OutbagServer.zip outbag_server/*
|
- zip -r upload/OutbagServer.zip outbag_server/*
|
||||||
- tar -czvf upload/OutbagServer.tar.gz outbag_server/*
|
- tar -czvf upload/OutbagServer.tar.gz outbag_server/*
|
||||||
- cp build/bin/* upload
|
- cp build/bin/* upload
|
||||||
- npx gitea-release "$${API_URL}" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
|
publish:
|
||||||
when:
|
image: woodpeckerci/plugin-gitea-release
|
||||||
event: tag
|
settings:
|
||||||
secrets: [ gitea_token, api_url ]
|
base_url: https://codeberg.org
|
||||||
|
files:
|
||||||
|
- "upload/*"
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
|
||||||
|
# publish:
|
||||||
|
# image: node:18-alpine
|
||||||
|
# commands:
|
||||||
|
# - apk add git zip tar
|
||||||
|
# - npm install git+https://jusax.de/git/jusax23/gitea-release.git
|
||||||
|
# - 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/*
|
||||||
|
# - cp build/bin/* upload
|
||||||
|
# - npx gitea-release "$${API_URL}" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
|
||||||
|
# when:
|
||||||
|
# event: tag
|
||||||
|
# secrets: [ gitea_token, api_url ]
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
Loading…
Reference in a new issue