From 90cf88957a165c00dc4ab909b5426a45e55ebd7c Mon Sep 17 00:00:00 2001 From: Chanism <48588531+ykdy3951@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:40:50 +0900 Subject: [PATCH 1/2] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 83c1fb3..cc715aa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,9 @@ jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest + defaults: + run: + working-directory: ./cllm-website/ steps: - uses: actions/checkout@v4 with: @@ -22,6 +25,7 @@ jobs: with: node-version: 18 cache: npm + cache-dependency-path: './cllm-website/package-lock.json' - name: Install dependencies run: | From ac47e204561c0c899c656b64e0a91fc4dbc28417 Mon Sep 17 00:00:00 2001 From: Chanism <48588531+ykdy3951@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:45:22 +0900 Subject: [PATCH 2/2] Update deploy.yml --- .github/workflows/deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc715aa..8616e3f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,9 +14,8 @@ jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest - defaults: - run: - working-directory: ./cllm-website/ + env: + working-directory: ./cllm-website/ steps: - uses: actions/checkout@v4 with: @@ -29,11 +28,12 @@ jobs: - 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