Skip to content

Commit

Permalink
cd: update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnth committed Aug 21, 2024
1 parent 0e55b6b commit 420c17a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install --frozen-lockfile
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: yarn docs:build
run: pnpm docs:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist
Expand Down

0 comments on commit 420c17a

Please sign in to comment.