Fix CodeViewer language resolution for MIME types; remove unused Exam… #146
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: GitHub Pages deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - name: Install dependencies and build | |
| run: | | |
| npm install -g yarn | |
| yarn install | |
| yarn build --base=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ | |
| cp index.html dist/404.html | |
| - name: Setup GH Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload GH Pages | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './dist' | |
| - name: Deploy GH Pages | |
| uses: actions/deploy-pages@v4 |