Skip to content

Commit af845c8

Browse files
committed
added github actions for deploying documentation
update github actions
1 parent de76513 commit af845c8

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/deploy_docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Documentation Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '18'
23+
24+
- name: Change directory to documentation
25+
run: cd documentation
26+
27+
- name: Install dependencies
28+
run: yarn install
29+
30+
- name: Build documentation site
31+
run: yarn build
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./build

0 commit comments

Comments
 (0)