[A11y] Fix 'Vision data explorer' text present under 'analyse_ model' page is not defined as heading programmatically. #9378
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
website-build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
pip install ./ | |
working-directory: raiwidgets | |
- name: Build | |
run: make html | |
working-directory: ./docs | |
- name: Disable jekyll builds | |
# By default GitHub attempts jekyll builds. | |
# Instead, we want the webpage to just point at index.html | |
run: touch docs/build/html/.nojekyll | |
- name: Create CNAME file | |
run: echo "erroranalysis.ai" > docs/build/html/CNAME | |
- name: Deploy | |
# only deploy if this is a push event on main | |
if: github.event_name == 'push' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build/html |