From f907a5cf227e50ea8eb39aa6640a24a14f7eafc4 Mon Sep 17 00:00:00 2001 From: LachlanBWWright Date: Wed, 27 Nov 2024 17:30:46 +1100 Subject: [PATCH] GH pages --- .github/workflows/deploy.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3726a7..2d2c615 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,11 @@ jobs: name: Build runs-on: ubuntu-latest + #work in frontend directory + defaults: + run: + working-directory: frontend + steps: - name: Checkout repo uses: actions/checkout@v3 @@ -27,23 +32,27 @@ jobs: uses: actions/upload-artifact@v3 with: name: production-files - path: ./frontend/dist + path: ./dist deploy: name: Deploy needs: build runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' + #work in frontend directory + defaults: + run: + working-directory: frontend steps: - name: Download artifact uses: actions/download-artifact@v3 with: name: production-files - path: ./frontend/dist + path: ./dist - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./frontend/dist + publish_dir: ./dist