Skip to content

Commit 67c1d46

Browse files
committed
update workflow
1 parent 6c45935 commit 67c1d46

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,24 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020

21+
- name: Set up Go
22+
uses: actions/setup-go@v3
23+
with:
24+
go-version: '1.22' # oder deine lokale Go-Version
25+
26+
- name: Install Go modules
27+
run: |
28+
go mod tidy
29+
go mod vendor
30+
2131
- name: Setup Hugo
2232
uses: peaceiris/actions-hugo@v2
2333
with:
2434
hugo-version: '0.121.1' # oder was du lokal nutzt
2535
extended: true
2636

2737
- name: Build site
28-
run: hugo --minify
38+
run: hugo --minify --vendor # Build mit vendored Go-Modulen
2939

3040
- name: Upload artifact
3141
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)