Skip to content

Commit 18c84bd

Browse files
committed
chore: update hugo (must be in sync with website repo) and simplify/fix trigger condition
1 parent 868b655 commit 18c84bd

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/docs.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,24 @@ name: Documentation Preview
33
on:
44
pull_request:
55
# allow repository maintainers to modify and test workflow
6-
paths-ignore:
7-
- "**"
8-
- "!.github/workflows/docs.yaml"
6+
paths:
7+
- ".github/workflows/docs.yaml"
98
pull_request_target:
109
# enable runs for this workflow when labeled as documentation only
1110
# prevent execution when the workflow itself is modified from a fork
1211
types:
1312
- labeled
1413
- synchronize
15-
paths-ignore:
16-
- "**"
17-
- "!docs/**"
14+
paths:
15+
- "docs/**"
1816

1917
jobs:
2018
deploy:
2119
name: Build & Deploy
2220
runs-on: ubuntu-latest
2321
if: >
2422
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'impact/docs'))
25-
|| (github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
23+
|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
2624
permissions:
2725
contents: read
2826
pull-requests: write
@@ -52,7 +50,7 @@ jobs:
5250

5351
- uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
5452
with:
55-
hugo-version: '0.83.1'
53+
hugo-version: "0.139.2"
5654

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

@@ -67,7 +65,7 @@ jobs:
6765
# Build website assets (CSS/JS).
6866
npm ci && npm run prod
6967
# Build the static website.
70-
hugo -v --minify
68+
hugo --minify --logLevel info
7169
7270
- uses: amondnet/vercel-action@16e87c0a08142b0d0d33b76aeaf20823c381b9b9 # v25.2.0
7371
with:

0 commit comments

Comments
 (0)