Skip to content

Commit af7d05b

Browse files
Page workflow action #29
1 parent e6982de commit af7d05b

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Publish TypeDoc to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '18'
20+
21+
- name: Install Dependencies
22+
run: npm install
23+
24+
- name: Generate TypeDoc Documentation
25+
run: npm run typedoc
26+
27+
- name: Deploy to GitHub Pages
28+
uses: name: Publish TypeDoc to GitHub Pages
29+
30+
on:
31+
push:
32+
branches:
33+
- main
34+
35+
jobs:
36+
build-and-deploy:
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout Repository
41+
uses: actions/checkout@v2
42+
43+
- name: Set up Node.js
44+
uses: actions/setup-node@v2
45+
with:
46+
node-version: '14' # Set your Node.js version here
47+
48+
- name: Install Dependencies
49+
run: npm install
50+
51+
- name: Generate TypeDoc Documentation
52+
run: npm run typedoc # Replace with your TypeDoc script
53+
54+
- name: Deploy to GitHub Pages
55+
uses: actions/deploy-pages@v2
56+
with:
57+
branch: gh-pages # Pushes to the gh-pages branch
58+
folder: docs # Replace with the folder where TypeDoc outputs the files
59+
60+
with:
61+
branch: gh-pages # Pushes to the gh-pages branch
62+
folder: docs # Replace with the folder where TypeDoc outputs the files

0 commit comments

Comments
 (0)