From a926960e11cc514aad13f0b94107c66af74288b2 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 29 Jan 2023 21:19:32 +0100 Subject: [PATCH] upload only zip --- .woodpecker.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c946d1e..ef8339a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,7 +9,12 @@ pipeline: - npm install - npm install git+https://jusax.de/git/jusax23/gitea-release.git - mkdir build + - mkdir dblang + - mkdir upload - npm run prepublish - ls dist - - npx gitea-release "https://jusax.de/git/api/v1/" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "dist" "$${CI_COMMIT_MESSAGE}" + - cp dist/* dblang + - 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}" secrets: [ gitea_token ] \ No newline at end of file