-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add wasm and re-org code * feat: add webui * ci: add gh pages * feat: add link * test: add missing snapshots
- Loading branch information
1 parent
c5598d8
commit 423c168
Showing
27 changed files
with
1,848 additions
and
1,091 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
contents: read | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build-gh-pages: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { submodules: recursive } | ||
- uses: typst-community/setup-typst@v3 | ||
with: { typst-version: "0.10.0" } | ||
- uses: rui314/setup-mold@v1 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: { targets: wasm32-unknown-unknown } | ||
- uses: jetli/[email protected] | ||
with: | ||
version: "v0.12.1" | ||
- uses: mozilla-actions/[email protected] | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: | | ||
wasm-pack build | ||
- run: | | ||
cd web | ||
yarn | ||
yarn build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
# Upload `/github-pages` sub directory | ||
path: "web/dist" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.