Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on:
push:
tags:
- 'v*'
pull_request:
# Allow manual trigger
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Minimal permissions; deploy job adds pages: write and id-token: write
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment
concurrency:
Expand All @@ -35,7 +34,7 @@ jobs:
- name: Setup Hugo (Extended)
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
hugo-version: '0.157.0'
extended: true

- name: Setup Node
Expand Down Expand Up @@ -63,11 +62,16 @@ jobs:
HUGO_ENVIRONMENT: production

- name: Upload artifact
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-pages-artifact@v3
with:
path: docs-site/public

deploy:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
Loading