Skip to content

Commit ba52ab2

Browse files
authoredJul 29, 2023
Update and rename hugo.yml to deploy.yml
1 parent daf8311 commit ba52ab2

File tree

2 files changed

+39
-75
lines changed

2 files changed

+39
-75
lines changed
 

‎.github/workflows/deploy.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- hugo
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
15+
16+
- name: Build Link Index
17+
uses: jackyzha0/hugo-obsidian@v2.20
18+
with:
19+
index: true
20+
input: content
21+
output: assets/indices
22+
root: .
23+
24+
- name: Setup Hugo
25+
uses: peaceiris/actions-hugo@v2
26+
with:
27+
hugo-version: '0.96.0'
28+
extended: true
29+
30+
- name: Build
31+
run: hugo --minify
32+
33+
- name: Deploy
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./public
38+
publish_branch: deploy # deploying branch
39+
cname: akippnn.github.io

‎.github/workflows/hugo.yml

-75
This file was deleted.

0 commit comments

Comments
 (0)