Skip to content

Commit cc66e60

Browse files
committed
try this build instead...
1 parent 63ae4b3 commit cc66e60

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/build-site.yml

+23-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
name: Publish Site
1+
name: GitHub Pages
22

33
on:
44
push:
55
branches:
66
- default
7+
pull_request:
78

89
jobs:
9-
build-deploy:
10-
runs-on: ubuntu-latest
11-
10+
deploy:
11+
runs-on: ubuntu-20.04
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
1214
steps:
13-
- name: Checkout Repo
14-
uses: actions/checkout@master
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
fetch-depth: 0
19+
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
1522
with:
16-
submodules: true
17-
- name: Publish Site
18-
uses: chabad360/hugo-gh-pages@master
23+
hugo-version: '0.85.0'
24+
25+
- name: Build
26+
run: hugo --minify
27+
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
if: ${{ github.ref == 'refs/heads/default' }}
1931
with:
20-
githubToken: ${{ secrets.PERSONAL_TOKEN }}
32+
github_token: ${{ secrets.PERSONAL_TOKEN }}
33+
publish_dir: ./public

0 commit comments

Comments
 (0)