From 6a11f89208104837308f0bf91af365a54590cd2b Mon Sep 17 00:00:00 2001 From: jusax23 Date: Tue, 8 Nov 2022 16:12:49 +0100 Subject: [PATCH] gitea-release test --- .woodpecker.yml | 2 +- package-lock.json | 25 +++++++++++++++++++++++++ package.json | 4 +++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b9ceba0..58c8e39 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,5 +9,5 @@ pipeline: - mkdir build - npm run build - ls build - - node publish.js https://jusax.de/git/api/v1/ "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "build" "$${CI_COMMIT_MESSAGE}" + - npx gitea-release "https://jusax.de/git/api/v1/" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "build" "$${CI_COMMIT_MESSAGE}" secrets: [ gitea_token ] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3a44cc5..e31309a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "devDependencies": { "esbuild": "^0.15.12", "form-data": "^4.0.0", + "gitea-release": "git+https://jusax.de/git/jusax23/gitea-release.git", "node-fetch": "^3.2.10", "path": "^0.12.7" } @@ -489,6 +490,20 @@ "node": ">=12.20.0" } }, + "node_modules/gitea-release": { + "version": "1.0.0", + "resolved": "git+https://jusax.de/git/jusax23/gitea-release.git#bc438715c11aeef7cc8ae97fc1c785f21fe6f7f1", + "dev": true, + "license": "ISC", + "dependencies": { + "form-data": "^4.0.0", + "node-fetch": "^3.2.10", + "path": "^0.12.7" + }, + "bin": { + "gitea-release": "upload.js" + } + }, "node_modules/inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", @@ -833,6 +848,16 @@ "fetch-blob": "^3.1.2" } }, + "gitea-release": { + "version": "git+https://jusax.de/git/jusax23/gitea-release.git#bc438715c11aeef7cc8ae97fc1c785f21fe6f7f1", + "dev": true, + "from": "gitea-release@git+https://jusax.de/git/jusax23/gitea-release.git", + "requires": { + "form-data": "^4.0.0", + "node-fetch": "^3.2.10", + "path": "^0.12.7" + } + }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", diff --git a/package.json b/package.json index e35fff6..af1c117 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "serveMenu": "esbuild example/menu/index.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --servedir=example/menu #--sourcemap", - "build": "esbuild stear/main.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --outdir=build" + "build": "esbuild stear/main.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --outdir=build", + "te": "gitea-release" }, "repository": { "type": "git", @@ -25,6 +26,7 @@ "devDependencies": { "esbuild": "^0.15.12", "form-data": "^4.0.0", + "gitea-release": "git+https://jusax.de/git/jusax23/gitea-release.git", "node-fetch": "^3.2.10", "path": "^0.12.7" }