diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fd2cec7..d6d674d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,3 +1,4 @@ +# Simple workflow for deploying static content to GitHub Pages name: Deploy MkDocs Site on: @@ -6,6 +7,21 @@ on: - master - main - develop + # 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-docs: runs-on: ubuntu-latest @@ -14,7 +30,6 @@ jobs: - name: Setup Python uses: actions/setup-python@v5.0.0 with: - github_token: ${{secrets.FASTGEOAPI_GITHUB_TOKEN }} python-version: "3.10" - name: Install dependencies run: pip install mkdocs mkdocs-material termynal