Skip to content

Commit 89bd108

Browse files
commit WASM binding to gh-pages branch (#22)
1 parent 1516959 commit 89bd108

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/generate.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ jobs:
2222
- name: Install npm dependencies
2323
run: npm ci
2424
- name: Generate parser
25-
run: npx tree-sitter generate
25+
run: |
26+
npx tree-sitter generate
27+
npx tree-sitter build-wasm
2628
- name: Update parser files
2729
uses: stefanzweifel/git-auto-commit-action@v4
2830
with:
2931
commit_message: Generate parser
3032
file_pattern: src
33+
- name: Checkout gh-pages branch to ./gh-pages
34+
uses: actions/checkout@v2
35+
with:
36+
ref: gh-pages
37+
path: ./gh-pages
38+
- run: mv *.wasm ./gh-pages
39+
- name: Update WASM file on gh-pages branch
40+
uses: stefanzweifel/git-auto-commit-action@v4
41+
with:
42+
commit_message: Generate WASM
43+
file_pattern: "*.wasm"
44+
repository: ./gh-pages

0 commit comments

Comments
 (0)