fix(ci): remove test since tinymist is unavailable #19
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: Build and Deploy Documentation to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: ["src/**", "docs/**", "examples/**"] | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # 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: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install fonts | |
| run: | | |
| git fetch origin assets:assets | |
| git checkout assets -- assets/fonts | |
| sudo mkdir -p /usr/share/fonts/truetype/custom | |
| sudo cp assets/fonts/*.ttf /usr/share/fonts/truetype/custom/ || true | |
| sudo fc-cache -fv | |
| - name: Setup Nushell | |
| uses: hustcer/setup-nu@v3 | |
| - name: Setup typst | |
| uses: typst-community/setup-typst@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install tools | |
| uses: taiki-e/install-action@just | |
| - name: Build documentation | |
| run: just docs-build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "docs/dist" | |
| deploy: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |