Skip to content

Commit 2890b40

Browse files
committed
Rebuild docs when files are updated on master
1 parent a51fd65 commit 2890b40

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build-website-master
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'docs/**'
8+
9+
jobs:
10+
gh-release:
11+
if: github.event_name != 'pull_request'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '20.x'
18+
- name: Build
19+
run: |
20+
npm ci
21+
npm run build
22+
- name: Release to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./dist

.github/workflows/build-website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [docs]
66
push:
77
branches: [docs]
8+
workflow_dispatch:
89

910
jobs:
1011
gh-release:

0 commit comments

Comments
 (0)