Commit
+15 -0 +/-1 browse
1 | diff --git a/.github/workflows/generate-parser.yml b/.github/workflows/generate-parser.yml |
2 | index 633c55b..a21de5a 100644 |
3 | --- a/.github/workflows/generate-parser.yml |
4 | +++ b/.github/workflows/generate-parser.yml |
5 | @@ -42,3 +42,18 @@ jobs: |
6 | git add src |
7 | git commit -m "Generate parser" || true |
8 | git push |
9 | + |
10 | + - name: Checkout gh-pages branch to ./gh-pages |
11 | + uses: actions/checkout@v2 |
12 | + with: |
13 | + ref: gh-pages |
14 | + path: ./gh-pages |
15 | + |
16 | + - run: mv *.wasm ./gh-pages |
17 | + |
18 | + - name: Commit generated wasm binding to the gh-pages branch |
19 | + run: | |
20 | + cd ./gh-pages |
21 | + git add *.wasm |
22 | + git commit -m "Generate WASM binding" || true |
23 | + git push |