2025-04-27 09:25:48 -03:00
|
|
|
name: GBCI
|
|
|
|
|
|
|
|
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: Install dependencies and build
|
|
|
|
run: |
|
2025-04-27 09:30:33 -03:00
|
|
|
npm i
|
|
|
|
npm run build
|
2025-04-27 09:25:48 -03:00
|
|
|
|
|
|
|
- name: Deploy to production
|
|
|
|
run: |
|
|
|
|
sudo rm -rf /opt/gbo/websites/next.generalbots.online/*
|
|
|
|
sudo cp -r ./out/. /opt/gbo/websites/next.generalbots.online/
|