commit WASM binding to gh-pages branch (#22)
This commit is contained in:
parent
15169596d1
commit
89bd108897
|
@ -22,9 +22,23 @@ jobs:
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Generate parser
|
- name: Generate parser
|
||||||
run: npx tree-sitter generate
|
run: |
|
||||||
|
npx tree-sitter generate
|
||||||
|
npx tree-sitter build-wasm
|
||||||
- name: Update parser files
|
- name: Update parser files
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: Generate parser
|
commit_message: Generate parser
|
||||||
file_pattern: src
|
file_pattern: src
|
||||||
|
- name: Checkout gh-pages branch to ./gh-pages
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: gh-pages
|
||||||
|
path: ./gh-pages
|
||||||
|
- run: mv *.wasm ./gh-pages
|
||||||
|
- name: Update WASM file on gh-pages branch
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: Generate WASM
|
||||||
|
file_pattern: "*.wasm"
|
||||||
|
repository: ./gh-pages
|
||||||
|
|
Loading…
Reference in New Issue