From 278fa410f56f309fda7d6bc59cfeff84477f0bfb Mon Sep 17 00:00:00 2001 From: Nonchalant Norman <64366765+BitMap4@users.noreply.github.com> Date: Tue, 24 Dec 2024 20:16:51 +0530 Subject: [PATCH] build: fix build workflow not correctly using ./frontend --- .github/workflows/main.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b8dabd..6fee547 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,6 @@ name: Deploy frontend on: push: branches: ['master'] - workflow_dispatch: # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages @@ -26,23 +25,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Move to frontend - run: cd frontend - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' + - name: Install dependencies run: npm ci + working-directory: ./frontend + - name: Build run: npm run build + working-directory: ./frontend + - name: Setup Pages uses: actions/configure-pages@v4 + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: './dist' + path: './frontend/dist' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4