GHA: move the Testi386 job to a local workflow (#236) #23
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 decoder to GitHub Pages | |
| 'on': | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false # zizmor: ignore[concurrency-limits] | |
| permissions: {} | |
| jobs: | |
| build: | |
| name: 'Build pages' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary . | |
| - name: Generate decoder HTML | |
| run: python -m curl_fuzzer_tools.generate_decoder_html | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 | |
| with: | |
| path: docs | |
| deploy: | |
| name: 'Deploy pages' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write # To deploy to Pages | |
| id-token: write # To verify the deployment originates from an appropriate source | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 |