From e07c4e31115d99a619f7082e140b1df178670119 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Mon, 23 Jan 2023 21:28:28 +0100 Subject: [PATCH] add ci --- .gitignore | 2 +- .npmignore | 2 ++ .woodpecker.yml | 15 +++++++++++++++ package.json | 2 -- readme.md | 1 + 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .woodpecker.yml create mode 100644 readme.md diff --git a/.gitignore b/.gitignore index 795255a..a34ff48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ dist node_modules -test.ts \ No newline at end of file +ltests \ No newline at end of file diff --git a/.npmignore b/.npmignore index e69de29..321bdef 100644 --- a/.npmignore +++ b/.npmignore @@ -0,0 +1,2 @@ +test.ts +ltests \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..82e4c1c --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,15 @@ +# .woodpecker.yml +platform: linux/arm64 + +pipeline: + build: + image: node:18-alpine + commands: + - apk add git + - npm install + - npm install https://jusax.de/git/jusax23/gitea-release.git + - mkdir build + - 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}" + secrets: [ gitea_token ] \ No newline at end of file diff --git a/package.json b/package.json index 2702980..27be79e 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,6 @@ ], "private": false, "scripts": { - "build": "esbuild test.ts --bundle --outdir=dist", - "run": "npm run build && echo 'start:' && node dist/test.js", "prepublish": "tsc" }, "author": "jusax23", diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..72fa516 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +[![status-badge](https://ci.jusax.de/api/badges/jusax23/dblang/status.svg)](https://ci.jusax.de/jusax23/dblang) \ No newline at end of file