Skip to content

Commit 304769f

Browse files
committed
Add autodeploy for docs
1 parent a5e57b2 commit 304769f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'adminforth/documentation/**'
9+
- '.github/workflows/deploy_documentation.yaml'
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: adminforth/documentation
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
cache-dependency-path: adminforth/documentation/package-lock.json
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build docs
31+
run: npm run build
32+
33+
- name: Deploy docs
34+
run: npm run deploy

0 commit comments

Comments
 (0)