From c44a819485416591dc094049d6cd004cff44e22f Mon Sep 17 00:00:00 2001 From: majidsajadi Date: Mon, 27 May 2024 12:46:44 +0330 Subject: [PATCH] ci: update docs actions --- .github/workflows/deploy.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a53fcf4..a98758ac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,25 +17,21 @@ permissions: pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: pages cancel-in-progress: false jobs: - # Build job build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 # Not needed if lastUpdated is not enabled - - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm + fetch-depth: 0 + - uses: pnpm/action-setup@v3 with: version: 9 - # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun - name: Setup Node uses: actions/setup-node@v4 with: @@ -44,15 +40,16 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 - name: Install dependencies - run: pnpm install # or pnpm install / yarn install / bun install - - name: Build with VitePress - run: pnpm docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build + run: pnpm install + - name: Build Project + run: pnpm build + - name: Build Docs + run: pnpm docs:build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: docs/.vitepress/dist - # Deployment job deploy: environment: name: github-pages