forked from xkjyeah/vue-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 52
34 lines (32 loc) · 907 Bytes
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: documentation
on:
push:
branches:
- master
jobs:
publish:
name: github pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install pnpm
run: npm install --location=global [email protected]
- name: Remove pnpm-workspace.yaml
run: rm -rf ./pnpm-workspace.yaml
- name: Install dependencies
working-directory: ./packages/documentation
run: pnpm install
- name: Build docs
working-directory: ./packages/documentation
run: pnpm run build
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: ./packages/documentation/build
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}