Skip to content

Commit fc114aa

Browse files
committed
🐎 ci: deploy via actions
1 parent 1dcae3c commit fc114aa

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy
2+
on:
3+
workflow_dispatch: {}
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
build-and-deploy:
11+
concurrency: ci-${{ github.ref }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [22]
16+
environment:
17+
name: github-pages
18+
steps:
19+
- name: Checkout πŸ›ŽοΈ
20+
uses: actions/checkout@main
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup pnpm ⚑️
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 9
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@main
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: "pnpm"
34+
35+
- name: Install dependencies ⚑️
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Build πŸ› οΈ
39+
run: pnpm docs:build
40+
41+
- name: Deploy πŸš€
42+
uses: peaceiris/actions-gh-pages@v4
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: docs/.vitepress/dist
46+
user_name: "github-actions[bot]"
47+
user_email: "41898282+github-actions[bot]@users.noreply.github.com"
48+
commit_message: "🐎 ci: Deploy"
49+
force_orphan: true

0 commit comments

Comments
Β (0)