From 9a2ab7ec02e8b2fb1861ff38fc4afb69b03d1acf Mon Sep 17 00:00:00 2001 From: Erfan Mola Date: Sun, 8 Oct 2023 02:01:06 +0330 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9bf778d..3aca110 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: # Runs on pushes targeting the `main` branch. Change this to `master` if you're # using the `master` branch as the default branch. push: - branches: [main] + branches: [master] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -39,13 +39,14 @@ jobs: with: node-version: 18 cache: npm # or pnpm / yarn + cache-dependency-path: docs/package-lock.json - name: Setup Pages uses: actions/configure-pages@v3 - name: Install dependencies run: npm ci # or pnpm install / yarn install / bun install - name: Build with VitePress run: | - npm run docs:build --prefix docs # or pnpm docs:build / yarn docs:build / bun run docs:build + npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build touch docs/.vitepress/dist/.nojekyll - name: Upload artifact uses: actions/upload-pages-artifact@v2