# This is a basic workflow to help you get started with Actions name: Publish site on: release: types: [published] push: branches: - main - docs paths: - summary_results.json workflow_dispatch: inputs: branch: description: 'Branch to reset (leave blank for current branch)' required: false default: '' jobs: publish: name: Publish the site runs-on: ubuntu-latest steps: - name: Checkout repository normally uses: actions/checkout@v4 with: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: Set up Python uses: actions/setup-python@v4 with: python-version: "3.11" - name: Init docs run: INFERENCE_RESULTS_REPO_OWNER=${{ github.repository_owner }} INFERENCE_RESULTS_REPO_BRANCH=${{ github.ref }} INFERENCE_RESULTS_REPO_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2) INFERENCE_RESULTS_VERSION=v6.0 bash run.sh - name: Run Mkdocs deploy run: mkdocs gh-deploy --force