From 5316c1606fba932c5b66aac6c17c950dd117047a Mon Sep 17 00:00:00 2001 From: Asaf Korem Date: Fri, 3 Jan 2025 16:08:11 +0200 Subject: [PATCH] gh-actions: fix working dir --- .github/workflows/deploy.yml | 8 +++----- .github/workflows/test-deploy.yml | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c119a5e..f6ccb29 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,12 +18,12 @@ jobs: node-version: 18 cache: npm - - name: Change to /website directory - run: cd website - - name: Install dependencies + working-directory: website run: npm install --frozen-lockfile + - name: Build website + working-directory: website run: npm run build - name: Upload Build Artifact @@ -47,8 +47,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Change to /website directory - run: cd website - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index e968800..0a2de92 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -18,11 +18,10 @@ jobs: node-version: 18 cache: npm - - name: Change to /website directory - run: cd website - - name: Install dependencies + working-directory: website run: npm install --frozen-lockfile - name: Test build website + working-directory: website run: npm run build