fix(formatter): ensure match expression with trailing comments on con… #628
This file contains hidden or 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: Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: wasm-build | |
| - name: Install wasm-pack | |
| uses: jetli/[email protected] | |
| with: | |
| version: latest | |
| - name: Build WASM module | |
| run: | | |
| cd crates/wasm | |
| wasm-pack build --target web --out-dir pkg-web | |
| - name: Copy WASM to docs | |
| run: | | |
| mkdir -p docs/public/wasm | |
| cp crates/wasm/pkg-web/mago_wasm.js docs/public/wasm/ | |
| cp crates/wasm/pkg-web/mago_wasm_bg.wasm docs/public/wasm/ | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: cd docs && bun install --frozen-lockfile | |
| - name: Build docs | |
| run: cd docs && bun run build | |
| - name: Upload GitHub Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| needs: [build] | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |