summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2025-09-11 21:17:42 -0500
committerHunter Kvalevog <hunter@kvog.sh>2025-09-11 21:17:42 -0500
commit3ff40b98a9f22a681374e9c9cd19002010899f8f (patch)
tree66fb2a032e57a2d28d9847aff58bc190006e92b4
parent6b1b898e05db91ee2ae76cd3dff1afa672a7af21 (diff)
-rw-r--r--.github/workflows/hugo.yml18
1 files changed, 8 insertions, 10 deletions
diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index 991f297..93b4987 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -2,27 +2,25 @@ name: Deploy Hugo site to Pages
on:
push:
- branches:
- - master
+ branches: [master]
+
+permissions:
+ contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- - name: Checkout source
- uses: actions/checkout@v4
+ - uses: actions/checkout@v4
- - name: Setup Hugo
- uses: peaceiris/actions-hugo@v3
+ - uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- - name: Build
- run: hugo --minify
+ - run: hugo --minify
- - name: Deploy to GitHub Pages
- uses: peaceiris/actions-gh-pages@v4
+ - uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public