Skip to content

Commit eda1040

Browse files
committed
refactor: streamline GitHub Actions workflow for documentation deployment
1 parent d6cc120 commit eda1040

1 file changed

Lines changed: 29 additions & 33 deletions

File tree

.github/workflows/docs.yml

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
11
name: GitHub Pages
22
on:
3-
workflow_dispatch:
4-
push:
5-
branches:
6-
- main
7-
- dev
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- dev
88
# tags:
99
# - "[0-9]+.[0-9]+.[0-9]+"
1010
permissions:
11-
contents: write
11+
contents: write
1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
submodules: "recursive"
19-
fetch-depth: 10
20-
- uses: pnpm/action-setup@v4
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: "22"
24-
cache: pnpm
25-
- run: pnpm install --frozen-lockfile
26-
- run: pnpm install:playwright
27-
- name: compile
28-
run: pnpm build:cli
29-
# - name: Build slides
30-
# run: pnpm build:slides
31-
- name: Build docs
32-
run: pnpm build:docs
33-
- name: no jekyll
34-
run: touch docs/dist/.nojekyll
35-
- name: Deploy 🚀
36-
uses: JamesIves/github-pages-deploy-action@v4.6.4
37-
with:
38-
folder: docs/dist
39-
single-commit: true
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: "recursive"
19+
fetch-depth: 10
20+
- uses: pnpm/action-setup@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: "22"
24+
cache: pnpm
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm install:playwright
27+
- name: build all
28+
run: pnpm build
29+
- name: no jekyll
30+
run: touch docs/dist/.nojekyll
31+
- name: Deploy 🚀
32+
uses: JamesIves/github-pages-deploy-action@v4.6.4
33+
with:
34+
folder: docs/dist
35+
single-commit: true

0 commit comments

Comments
 (0)