Skip to content

Commit 95bb7d7

Browse files
committed
build: Publish to GitHub Pages
1 parent fa43c59 commit 95bb7d7

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update Github Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Upload docs
13+
run: |
14+
git config --local user.email "action@github.com"
15+
git config --local user.name "GitHub Action"
16+
mv bindings/javascript/wasm/ docs/
17+
touch docs/.nojekyll
18+
git add --force docs/
19+
git commit -m "chore: build pages"
20+
git push --force origin HEAD:gh-pages

0 commit comments

Comments
 (0)