diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 1df7005..4764cb9 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -22,9 +22,23 @@ jobs: - name: Install npm dependencies run: npm ci - name: Generate parser - run: npx tree-sitter generate + run: | + npx tree-sitter generate + npx tree-sitter build-wasm - name: Update parser files uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Generate parser 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