fix(subtitles): strip all angle brackets — complete sanitization for … #182
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 | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: false | ||
| jobs: | ||
| build: | ||
| name: Build site | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: production | ||
| url: https://www.interscript.org | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Use Node | ||
| uses: actions/setup-node@v7 | ||
| with: | ||
| node-version: "22" | ||
| cache: npm | ||
| - name: Clone interscript-ts (file: dependency) | ||
| run: | | ||
| git clone --depth=1 --branch feat/imf-runtime-ts https://github.com/interscript/interscript-ts.git ../interscript-ts | ||
| cd ../interscript-ts && npm ci && npm run build | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Build site | ||
| run: npm run build | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v5 | ||
| with: | ||
| path: dist | ||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| if: ${{ github.ref == 'refs/heads/main' }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v5 | ||