diff --git a/.github/workflows/deploy-web-app.yml b/.github/workflows/deploy-web-app.yml index 9fd4097..193a4f5 100644 --- a/.github/workflows/deploy-web-app.yml +++ b/.github/workflows/deploy-web-app.yml @@ -6,9 +6,9 @@ on: workflow_dispatch: inputs: ref: - description: "Branch or tag to deploy" + description: Branch or tag to deploy required: true - default: "main" + default: main permissions: contents: read @@ -21,9 +21,13 @@ concurrency: jobs: build: - name: Build runs-on: ubuntu-latest + defaults: + run: + shell: bash + working-directory: apps/web + steps: - name: Checkout uses: actions/checkout@v5 @@ -35,23 +39,23 @@ jobs: with: node-version: 22 cache: npm + cache-dependency-path: apps/web/package-lock.json - name: Install dependencies run: npm ci - - name: Build (Vite) + - name: Build run: npm run build - name: Configure GitHub Pages uses: actions/configure-pages@v5 - - name: Upload build artifact + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: - path: ./dist + path: apps/web/dist deploy: - name: Deploy to GitHub Pages needs: build runs-on: ubuntu-latest @@ -60,6 +64,6 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Deploy + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4