From c3ea6482794701012e3f68d48fa1cc4ea535a5fe Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 26 Mar 2025 20:34:11 -0300 Subject: [PATCH] fix(workflows): change build runner from CI to gbo --- .forgejo/workflows/node.yaml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/node.yaml b/.forgejo/workflows/node.yaml index 6f146666..a70e1dbd 100644 --- a/.forgejo/workflows/node.yaml +++ b/.forgejo/workflows/node.yaml @@ -1,30 +1,28 @@ name: GBCI +run: git config --global http.sslVerify false on: push: - branches: ["main"] + branches: [ "main" ] pull_request: - branches: ["main"] + branches: [ "main" ] jobs: - build-and-deploy: + build: runs-on: gbo + steps: - name: Disable SSL verification (temporary) run: git config --global http.sslVerify false - name: Checkout code uses: actions/checkout@v4 - + - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'npm' - - - name: Install TypeScript and compile - run: | - - /opt/gbo/bin/BotServer/node_modules/.bin/tsc -p . + node-version: '20' + cache: 'npm' + - name: Copy files to deployment location run: | @@ -45,15 +43,12 @@ jobs: cd ../.. rm -rf deploy/default.gbui/node_modules - + - name: Transpile TypeScript run: | - echo "[General Bots Deployer] Transpiling..." - cd /opt/gbo/bin/BotServer - npx tsc -v - npx tsc -p . - echo "[General Bots Deployer] Deployment Finished." - + + /opt/gbo/bin/BotServer/node_modules/.bin/tsc -p . + - name: Reload and enable service run: | npm run start & \ No newline at end of file