diff --git a/.github/workflows/contextive-docs.yml b/.github/workflows/contextive-docs.yml index f239787..14c683f 100644 --- a/.github/workflows/contextive-docs.yml +++ b/.github/workflows/contextive-docs.yml @@ -7,34 +7,28 @@ on: jobs: - build-docs: - name: Build Docs + docs: + name: Docs runs-on: 'ubuntu-latest' + defaults: + run: + working-directory: 'docs/web/' steps: - uses: actions/checkout@v4 with: persist-credentials: false - - name: Setup NodeJS - uses: actions/setup-node@v4 + - uses: actions/setup-node@v4 with: node-version: 22 cache: "npm" + cache-dependency-path: docs/web/package-lock.json - - name: Install Dependencies - id: install-deps - run: npm ci - working-directory: docs/web/ + - run: npm ci - - name: Build - id: build - run: npm run build - working-directory: docs/web/ + - run: npm run build - - name: Deploy - id: deploy - run: npm run deploy - working-directory: docs/web/ + - run: npm run deploy env: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_AUTH: ${{ secrets.NETLIFY_AUTH }} \ No newline at end of file