From 4e929fd7ebb666de3380d623ad79d180d62c7924 Mon Sep 17 00:00:00 2001 From: Souradip Pal Date: Sat, 23 Nov 2024 23:57:37 -0600 Subject: [PATCH] Updated workflow --- .github/workflows/deploy_mkdocs.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_mkdocs.yml b/.github/workflows/deploy_mkdocs.yml index fca3f96..2d7e166 100644 --- a/.github/workflows/deploy_mkdocs.yml +++ b/.github/workflows/deploy_mkdocs.yml @@ -4,6 +4,21 @@ on: push: branches: - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write + + # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. + # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. + concurrency: + group: "pages" + cancel-in-progress: false jobs: deploy: @@ -14,6 +29,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + # Set up Python - name: Setup Python uses: actions/setup-python@v5 @@ -26,9 +44,6 @@ jobs: python -m pip install --upgrade pip pip install mkdocs mkdocs-material mkdocstrings-python - - name: Setup Pages - uses: actions/configure-pages@v3 - # Build the MkDocs site - name: Build and Publish MkDocs site run: mkdocs gh-deploy \ No newline at end of file