Skip to content

Commit b835905

Browse files
committed
Tweaks to build process
1 parent 58886a8 commit b835905

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/deploy-ghpages.yml

+6-26
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: true
15+
fetch-depth: 0
1316

1417
- name: Setup Hugo
15-
uses: peaceiris/actions-hugo@v2
18+
uses: peaceiris/actions-hugo@v3
1619
with:
1720
hugo-version: "0.133.0"
1821
extended: true
@@ -27,26 +30,3 @@ jobs:
2730
github_token: ${{ secrets.ghpat }}
2831
publish_dir: ./public
2932
cname: digitalevidencetoolkit.org
30-
31-
preview:
32-
runs-on: ubuntu-20.04
33-
if: ${{ github.event_name == 'pull_request' }}
34-
35-
steps:
36-
- uses: actions/checkout@v2
37-
38-
- name: Setup Hugo
39-
uses: peaceiris/actions-hugo@v2
40-
with:
41-
hugo-version: "0.133.0"
42-
extended: true
43-
44-
- name: Build
45-
run: hugo --minify
46-
47-
- name: Deploy Preview
48-
uses: peaceiris/actions-gh-pages@v3
49-
with:
50-
github_token: ${{ secrets.ghpat }}
51-
publish_dir: ./public
52-
cname: pr-${{ github.event.pull_request.number }}.digitalevidencetoolkit.org

0 commit comments

Comments
 (0)