Skip to content

Commit f17ccc4

Browse files
committed
Restore gh-pages workflow
This was dropped erroneously
1 parent 9b55362 commit f17ccc4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set a branch to deploy
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v5
14+
with:
15+
submodules: true # Fetch Hugo themes (true OR recursive)
16+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
17+
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 2.7
21+
22+
- run: gem install asciidoctor rouge
23+
24+
- name: Setup Hugo
25+
uses: peaceiris/actions-hugo@v3
26+
with:
27+
hugo-version: '0.133.1'
28+
extended: true
29+
30+
- name: Build
31+
run: |
32+
hugo --minify
33+
34+
- name: Deploy
35+
uses: peaceiris/actions-gh-pages@v4
36+
if: github.ref == 'refs/heads/main'
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./public

0 commit comments

Comments
 (0)