From c55fdc27e32ee4888fc41e01558942efe05a8cc2 Mon Sep 17 00:00:00 2001 From: Anant Negi <54684361+codeeshop-oc@users.noreply.github.com> Date: Fri, 3 Feb 2023 19:44:42 +0530 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7036cd3..a5f1798 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,6 @@ jobs: shell: bash run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Set node uses: actions/setup-node@v3 @@ -36,7 +35,10 @@ jobs: run: pnpm i - name: Lint - run: pnpm run lint + run: pnpm lint + + - name: Test + run: pnpm test build: needs: lint @@ -57,7 +59,6 @@ jobs: shell: bash run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Set node uses: actions/setup-node@v3 @@ -70,3 +71,9 @@ jobs: - name: Build run: pnpm docs:build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/.vitepress/dist