Skip to content

fallback to request if socket connection fails for object detection and question answering metrics for backcompat #8778

fallback to request if socket connection fails for object detection and question answering metrics for backcompat

fallback to request if socket connection fails for object detection and question answering metrics for backcompat #8778

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
website-build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
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