Skip to content

Commit

Permalink
Creación archivo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mirigonzalez01 committed Nov 7, 2024
1 parent 5c15715 commit ea971f2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy
on:
push:
branches:
-main
jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install frontend packages
working-directory: ./frontend
run: npm ci

- name: Build frontend
working-directory: ./frontend
npm run build

- name: Deploy frontend
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: frontend/dist

- name: Install backend packages
working-directory: ./backend
run: npm ci
1 change: 1 addition & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
base:"/Audioverse/",
plugins: [react()],
})

0 comments on commit ea971f2

Please sign in to comment.