botbook/.forgejo/workflows/node.yaml
Rodrigo Rodriguez (Pragmatismo) b25178c956
Some checks failed
GBCI / build (push) Failing after 25s
Add GitHub Actions workflow for Node.js build and deployment
2025-04-12 19:05:10 -03:00

33 lines
No EOL
670 B
YAML

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: |
pnpm i
pnpm run build
- name: Deploy to production
run: |
sudo rm -rf /opt/gbo/websites/docs.pragmatismo.com.br/*
sudo cp -r ./out/. /opt/gbo/websites/docs.pragmatismo.com.br/