Skip to content

Commit

Permalink
Add permissions to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Feb 21, 2024
1 parent 23bc4c9 commit bbbbab0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy MkDocs Site

on:
Expand All @@ -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
Expand All @@ -14,7 +30,6 @@ jobs:
- name: Setup Python
uses: actions/[email protected]
with:
github_token: ${{secrets.FASTGEOAPI_GITHUB_TOKEN }}
python-version: "3.10"
- name: Install dependencies
run: pip install mkdocs mkdocs-material termynal
Expand Down

0 comments on commit bbbbab0

Please sign in to comment.