Skip to content

Commit

Permalink
chore: update hugo (must be in sync with website repo) and simplify/f…
Browse files Browse the repository at this point in the history
…ix trigger condition
  • Loading branch information
radoering committed Nov 29, 2024
1 parent 868b655 commit 254bf71
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ name: Documentation Preview
on:
pull_request:
# allow repository maintainers to modify and test workflow
paths-ignore:
- "**"
- "!.github/workflows/docs.yaml"
paths:
- ".github/workflows/docs.yaml"
pull_request_target:
# enable runs for this workflow when labeled as documentation only
# prevent execution when the workflow itself is modified from a fork
types:
- labeled
- synchronize
paths-ignore:
- "**"
- "!docs/**"
paths:
- "docs/**"

jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
if: >
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'impact/docs'))
|| (github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
permissions:
contents: read
pull-requests: write
Expand Down Expand Up @@ -52,7 +50,7 @@ jobs:

- uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
with:
hugo-version: '0.83.1'
hugo-version: "0.139.2"

- uses: ./poetry-github/.github/actions/bootstrap-poetry

Expand All @@ -67,7 +65,7 @@ jobs:
# Build website assets (CSS/JS).
npm ci && npm run prod
# Build the static website.
hugo -v --minify
hugo --minify --logLevel info
- uses: amondnet/vercel-action@16e87c0a08142b0d0d33b76aeaf20823c381b9b9 # v25.2.0
with:
Expand Down

0 comments on commit 254bf71

Please sign in to comment.