-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (37 loc) · 1.21 KB
/
docs-main.yml
File metadata and controls
40 lines (37 loc) · 1.21 KB
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
35
36
37
38
39
40
name: Docs (main)
concurrency: docs-${{ github.ref }}
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
docs:
name: Deploy docs from main branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: "${{ github.ref_name }}"
- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: 22.x
- name: Install dependencies
run: npm ci
- name: Build documentation
uses: ./.github/actions/build-docs
with:
example-apps: true
sandbox: false
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: public
target-folder: main
clean: true
branch: gh-pages
git-config-name: ${{ vars.DOCS_DEPLOY_NAME }}
git-config-email: ${{ vars.DOCS_DEPLOY_EMAIL }}
commit-message: "chore(release): [skip ci] deploy documentation from main branch"