botserver/.forgejo/workflows/node.yaml
Rodrigo Rodriguez (Pragmatismo) d921be4435
Some checks failed
GBCI / build (push) Failing after 7m32s
fix(workflows): clean up node.yaml by removing unnecessary whitespace
2025-03-26 22:56:02 -03:00

47 lines
No EOL
1.1 KiB
YAML

name: GBCI
run: git config --global http.sslVerify false
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: gbo
steps:
- name: Disable SSL verification (temporary)
run: git config --global http.sslVerify false
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Copy files to deployment location
run: |
sudo cp -r ./* /opt/gbo/bin/BotServer/
- name: Install production dependencies in deployment location
run: |
echo "[General Bots Deployer] Building BotServer..."
cd /opt/gbo/bin/BotServer
sudo npm ci --production
npm run build --if-present
cd /opt/gbo/bin/BotServer/default.gbui
npm config set scripts-prepend-node-path true
echo "[General Bots Deployer] Building default.gbui..."
npm install
npm run build
cd ../..
rm -rf deploy/default.gbui/node_modules
- name: Build project
run: npm run build --if-present