Skip to content

Commit

Permalink
Set token permission
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 6, 2024
1 parent 3157607 commit 48baa6e
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,12 @@ on:
branches:
- master

# jobs:
# deploy:
# env:
# HUGO_VERSION: 0.123.7
# runs-on: ubuntu-22.04
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true # Fetch Hugo themes (true OR recursive)
# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# - name: Setup Hugo
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: ${HUGO_VERSION}
# # extended: true

# - name: Build
# run: hugo --minify

# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public

# 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
Expand Down

0 comments on commit 48baa6e

Please sign in to comment.