Skip to content

Commit 5badbe7

Browse files
author
Grzegorz Kocjan
committed
Setup github pages
1 parent 27f0404 commit 5badbe7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: .github/workflows/hugo.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-20.04
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
fetch-depth: 0
19+
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
22+
with:
23+
hugo-version: "latest"
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/main' }}
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_branch: gh-pages
34+
publish_dir: ./public

0 commit comments

Comments
 (0)