-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from gbprod/chore-ci-workflow
chore(ci): introduce gh-page
- Loading branch information
Showing
17 changed files
with
44 additions
and
1,066 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Generate gh-page | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
generate: | ||
name: Generate Parser | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm install | ||
- run: npm test | ||
- name: Generate parser files | ||
run: | | ||
npx tree-sitter generate | ||
npx tree-sitter build-wasm | ||
- name: Checkout gh-pages branch to ./gh-pages | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: gh-pages | ||
path: ./gh-pages | ||
|
||
- run: mv *.wasm ./gh-pages | ||
|
||
- name: Commit generated wasm binding to the gh-pages branch | ||
run: | | ||
cd ./gh-pages | ||
git add *.wasm | ||
git commit -m "Generate WASM binding" || true | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
/node_modules/ | ||
/build/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
build/Release/.deps/Release/obj.target/tree_sitter_twig_binding.node.d
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.