Skip to content

Commit 7ecde15

Browse files
authored
Merge pull request #600 from mbaldessari/restore-gh
Restore gh-pages workflow
2 parents 9b55362 + e510c93 commit 7ecde15

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/gh-pages.yml

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

0 commit comments

Comments
 (0)