diff --git a/.woodpecker.yml b/.woodpecker.yml index d9d02c6..3239bda 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -10,6 +10,8 @@ pipeline: - npm install git+https://jusax.de/git/jusax23/gitea-release.git - mkdir build - npm run prepublish + - npm run bundleRelease + - ls build/bundle - npm run build-linux-arm64 publish: image: node:18-alpine @@ -24,7 +26,7 @@ pipeline: - 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}" + - 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 ] \ No newline at end of file diff --git a/package.json b/package.json index ef21b06..3c84a80 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "debug": "tsc && node . -c config.juml -d", "setup": "tsc && node . -c config.juml -s", "bundleRelease": "mkdir build/bundle & esbuild src/main.ts --platform=node --bundle --minify --outfile=build/bundle/main.js", - "build-linux-x64": "npm run bundleRelease && mkdir build/bin & pkg -t node18-linux-x64 -o build/bin/outbag-linux-x64 build/bundle/main.js", - "build-linux-arm64": "npm run bundleRelease && mkdir build/bin & pkg -t node18-linux-arm64 -o build/bin/outbag-linux-arm64 build/bundle/main.js" + "build-linux-x64": "mkdir build/bin & pkg -t node18-linux-x64 -o build/bin/outbag-linux-x64 build/bundle/main.js", + "build-linux-arm64": "mkdir build/bin & pkg -t node18-linux-arm64 -o build/bin/outbag-linux-arm64 build/bundle/main.js" }, "repository": { "type": "git",