From c4d18bcdc1f9ed26c5ed4aad8be2d3c072eca75f Mon Sep 17 00:00:00 2001 From: Chanism <48588531+ykdy3951@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:17:10 +0900 Subject: [PATCH] Fix GitHub Page Deployment Error (#42) * Update deploy.yml * Update deploy.yml --- .github/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 83c1fb3..8616e3f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,8 @@ jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest + env: + working-directory: ./cllm-website/ steps: - uses: actions/checkout@v4 with: @@ -22,14 +24,16 @@ jobs: with: node-version: 18 cache: npm + cache-dependency-path: './cllm-website/package-lock.json' - name: Install dependencies run: | - npm --prefix ./cllm-website install --frozen-lockfile + npm install --frozen-lockfile + working-directory: ${{ env.working-directory }} - name: Build website run: | - npm --prefix ./cllm-website run build - + npm run build + working-directory: ${{ env.working-directory }} # Popular action to deploy to GitHub Pages: # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus - name: Deploy to GitHub Pages