feat(CI): Adding CI pipeline

This commit is contained in:
Josepablo Cruz
2024-02-15 20:15:16 -06:00
parent f2e33f494f
commit a9eb2d50ef
5 changed files with 48 additions and 2 deletions

15
scripts/ci_functions.sh Normal file
View File

@@ -0,0 +1,15 @@
#! /bin/bash
# Requirements
# Node v18
function build_static(){
#Global ENV VAR: BUILD_NAME
#Global ENV VAR: VITE_API_URL
nvm use 18
npm install --force 2>/dev/null
set -x
npm run build 2>/dev/null
cp htaccess dist/.htaccess
zip -r $BUILD_NAME.zip dist/
set +x
}