Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build-backend:
Expand Down Expand Up @@ -58,10 +56,9 @@ jobs:
run: npm run build

deploy-frontend:
name: Deploy Frontend to GitHub Pages
runs-on: ubuntu-latest
needs: build-frontend
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/develop'

steps:
- name: Checkout repository
Expand All @@ -72,3 +69,4 @@ jobs:
with:
branch: develop
folder: frontend/dist
clean: true
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ app/logs
**/__pycache__/
/frontend/package-lock.json
/backend/.env
/backend/logs/*
/backend/logs/*
# Ignore build output directories
/dist
/frontend/dist
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^1.7.2",
Expand Down
2 changes: 2 additions & 0 deletions run/frontend.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ cd /d "%diretorioVerificar%"

cmd /c npm install

cmd /c npm run build

cmd /c npm run serve

pause
Expand Down