From 4102c4d759a968bf9762adf6fcff676288c9b0a4 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 14 May 2024 12:16:16 +0200 Subject: [PATCH] add package upload step --- .woodpecker/ci.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index c14263ee3..a109568b5 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -37,8 +37,26 @@ steps: - yarn release - yarn release:standalone - yarn package - - ls -la - - ls -la release/* - - ls -la release-standalone/* - ls -la release-packages/* - - ls -la out/* \ No newline at end of file + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} + + save-package: + image: ocram85/plugin-gitea-package:0.1.0 + secrets: [ gitea_user, gitea_passwd] + settings: + user: + from_secret: gitea_user + password: + from_secret: gitea_passwd + debug: "true" + owner: "ocram85" + package_name: "test_build" + package_version: "0.1.0" + file_source: "./release-packages/code-sever-0.0.0-linux-amd64.tar.gz" + file_name: "code-server.tar.gz" + update: "true" + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} \ No newline at end of file