Author: Michael Davis [mcarsondavis@gmail.com]
Hash: 9c3983a088790c7245ec593839d3bf0d457d4a99
Timestamp: Wed, 02 Mar 2022 14:01:42 +0000 (2 years ago)

+15 -0 +/-1 browse
push generated wasm binding to the gh-pages branch
1diff --git a/.github/workflows/generate-parser.yml b/.github/workflows/generate-parser.yml
2index 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