botserver/.forgejo/workflows/node.yaml
Rodrigo Rodriguez (Pragmatismo) f232bdbaac
Some checks failed
GBCI / build (push) Failing after 8s
fix(KBService): update Puppeteer configuration for headless mode and executable path
fix(node.yaml): correct deployment paths and improve Node.js setup
fix(.gitignore): add 'botpoc' to ignored files
fix(SystemKeywords): enhance PDF conversion and image processing logic
fix(DialogKeywords): adjust Puppeteer launch options for better performance
fix(KeywordsExpressions): fix syntax error in PDF assignment
2025-06-09 19:51:05 -03:00

49 lines
1.3 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: |
echo "[General Bots Deployer] Copying files to deploy location..."
sudo rm -rf /opt/gbo/bin/bot/botserver/dist
sudo cp -r ./* /opt/gbo/bin/bot/botserver
- name: Install production dependencies in deployment location
run: |
echo "[General Bots Deployer] Building BotServer..."
# rm -rf /opt/gbo/bin/bot/botserver/node_modules
cd /opt/gbo/bin/bot/botserver
sudo npm ci --production
npm run build-server
npm run build-gbui
- name: Restart Bots Deployer
run: |
echo "[General Bots Deployer] Restarting..."
sudo systemctl stop bot
echo "[General Bots Deployer] Stopped."
sudo systemctl start bot
echo "[General Bots Deployer] Started."