From ea971f200633d752e24f636ee30f097e4e4d9d9f Mon Sep 17 00:00:00 2001 From: "m.gonzalez" Date: Thu, 7 Nov 2024 22:22:57 +0100 Subject: [PATCH] =?UTF-8?q?Creaci=C3=B3n=20archivo=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ frontend/vite.config.js | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..50852efe --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 5a33944a..12f8c863 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ + base:"/Audioverse/", plugins: [react()], })