Merge pull request #108 from sainijit/order-accuracy-doc #66
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: Update GH Pages | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - docs_src/** | |
| # pull_request: | |
| # The branches below must be a subset of the branches above | |
| # branches: [ "main" ] | |
| permissions: | |
| contents: write | |
| pages: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| path: documentation | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.x | |
| - name: Create /apis Directory | |
| run: mkdir -p ./apis | |
| - name: Download Performance Tools | |
| run: wget -P ./apis https://github.com/intel-retail/performance-tools/archive/refs/heads/main.zip | |
| - name: Unzip Performance Tools | |
| run: unzip ./apis/main.zip -d ./apis | |
| - name: Move Benchmark Scripts | |
| run: | | |
| mkdir -p ./benchmark-scripts | |
| mv ./apis/performance-tools-main/benchmark-scripts/* ./benchmark-scripts | |
| - name: Install mkdocs | |
| run: | | |
| pip install mkdocs "mkdocs-material>=8.2" "mkdocs-htmlproofer-plugin>=0.8" | |
| pip install "mkdocs-swagger-ui-tag" "mkdocstrings>=0.24.3" "mkdocstrings-python>=1.9.2" "mkdocs-mermaid2-plugin" | |
| - name: Configure Git user | |
| run: | | |
| cd documentation | |
| git config --local user.email "github-actions[bot]" | |
| git config --local user.name "github-actions[bot]@users.noreply.github.com" | |
| - name: Build Site with MkDocs | |
| run: mkdocs build --config-file documentation/mkdocs.yml | |
| - name: Deploy | |
| run: | | |
| cd documentation | |
| mkdocs gh-deploy --force --clean --verbose --config-file mkdocs.yml |