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