Skip to content

Commit 64490a5

Browse files
committed
ci: use npm installed hugo to reduce the number of hard-coded hugo versions
1 parent 535400e commit 64490a5

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,8 @@ jobs:
5656
token: ${{ secrets.GITHUB_TOKEN }}
5757
env: Preview
5858

59-
- name: Install Hugo
60-
uses: peaceiris/actions-hugo@v2
61-
with:
62-
hugo-version: "0.139.2"
63-
6459
- name: Build
65-
run: hugo --buildDrafts --buildFuture --logLevel info
60+
run: npx hugo --buildDrafts --buildFuture --logLevel info
6661

6762
- name: Deploy
6863
uses: amondnet/vercel-action@v25

.github/workflows/deploy-production.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ jobs:
5050
token: ${{ secrets.GITHUB_TOKEN }}
5151
env: Production
5252

53-
- name: Install Hugo
54-
uses: peaceiris/actions-hugo@v2
55-
with:
56-
hugo-version: "0.139.2"
57-
5853
- name: Build
59-
run: hugo --minify --logLevel info
54+
run: npx hugo --minify --logLevel info
6055

6156
- name: Build search index
6257
continue-on-error: true

0 commit comments

Comments
 (0)