Skip to content

Commit

Permalink
Add GITHUB_TOKEN permissions and quarto setup action to run-forecast.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Oct 7, 2024
1 parent d050f50 commit 75d313f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/run-forecast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- "main"
- "8-write-github-action-to-push-quarto-website-to-github-page"
- "8-write-github-action-to-push-quarto-website-to-github-page" # TODO: Remove before merge
pull_request:
branches: [ "main" ]

Expand All @@ -21,6 +21,12 @@ on:
# 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

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand All @@ -31,5 +37,11 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v4
# Installs quarto
- uses: quarto-dev/quarto-actions/setup@v2

# # Setting up the environment
# - name: Setup GitHub Pages
# uses: actions/configure-pages@v4

0 comments on commit 75d313f

Please sign in to comment.