Skip to content

Commit a557fd4

Browse files
authored
Merge pull request #3 from EDAcation/fix-workflow
Fix build workflow
2 parents 849297b + bac2f19 commit a557fd4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@ on:
66
branches:
77
- "*"
88

9+
permissions:
10+
pages: write
11+
id-token: write
12+
913
jobs:
1014
build:
1115
name: Build
1216
runs-on: ubuntu-latest
13-
permissions:
14-
pages: write
15-
id-token: write
17+
env:
18+
HUGO_VERSION: 0.145.0
1619
strategy:
1720
fail-fast: true
1821
outputs:
1922
vsixPath: ${{ steps.packageExtension.outputs.vsixPath }}
2023
steps:
2124
- name: Checkout Source
2225
uses: actions/checkout@v4
26+
- name: Install Hugo CLI
27+
run: |
28+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
29+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
2330
- name: Install Node 20
2431
uses: actions/setup-node@v4
2532
with:

0 commit comments

Comments
 (0)