fix(spec): add escape symbols for plus, minus and percent (#161) #46
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
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
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: scripts/build.sh | |
- run: | # Run tests | |
cd packages/typst-dom | |
yarn | |
yarn build | |
- run: | # Run tests | |
cd packages/mitex-web | |
yarn | |
yarn build --base=/mitex | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
# Upload `/github-pages` sub directory | |
path: "./packages/mitex-web/dist" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |