Update ERF config metadata and refresh FAISS database artifacts #268
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: docs | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| workflow_dispatch: | |
| inputs: | |
| deploy_target: | |
| type: choice | |
| description: Publish docs to GitHub Pages or just build. | |
| options: | |
| - build-only | |
| - gh-pages | |
| default: build-only | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install docs dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r docs/requirements.txt | |
| - name: Build docs | |
| run: | | |
| mkdocs build | |
| - name: Deploy to GitHub Pages | |
| if: > | |
| github.event_name == 'workflow_dispatch' && | |
| github.event.inputs.deploy_target == 'gh-pages' && | |
| github.ref == 'refs/heads/development' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| publish_branch: gh-pages | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: site | |
| force_orphan: true |