commit WASM binding to gh-pages branch (#22)

This commit is contained in:
Michael Davis 2022-01-10 10:21:52 -06:00 committed by GitHub
parent 15169596d1
commit 89bd108897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -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