Skip to content

Commit

Permalink
Set permissions on build_docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Nov 8, 2023
1 parent 363f6c0 commit 1c11a2b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
branches:
- "**"

# Allows you to run this workflow manually from the Actions tab
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
Expand Down

0 comments on commit 1c11a2b

Please sign in to comment.