Build and deploy compat to gh pages action #1
Workflow file for this run
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 Compat to GitHub Pages | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 23 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build-compat | |
| - name: Prepare GitHub Pages content | |
| run: cp tests/compat/index.html tests/compat/compat-data.js tests/compat/tests.js tests/compat/browsers-runner.js gh-pages/ | |
| - name: Upload GitHub Pages artifact | |
| uses: actions/upload-pages-artifact@v2 | |
| with: | |
| path: gh-pages | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v2 |