This commit is contained in:
parent cf5c98ade5
commit 0827053a11
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
3 changed files with 48 additions and 10 deletions

@ -0,0 +1,39 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build Link Index
uses: github.com/jackyzha0/hugo-obsidian@v2.18
with:
index: true
input: content
output: assets/indices
root: .
- name: Setup Hugo
uses: github.com/peaceiris/actions-hugo@v2
with:
hugo-version: '0.96.0'
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: github.com/peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: deploy # deploying branch
cname: tablet.sh

3
.gitignore vendored

@ -2,4 +2,5 @@ public/
exampleSite/public/
.DS_Store
.hugo_build.lock
themes
themes
.history/

@ -1,8 +1,8 @@
# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/
baseURL: https://amethyst.bencuan.me
baseURL: https://tablet.sh/
# Book configuration
disablePathToLower: true
disablePathToLower: false
enableGitInfo: true
# # Needed for mermaid/katex shortcodes
@ -25,8 +25,8 @@ menu:
# url: "https://google.com"
# weight: 10
after:
- name: "Github"
url: "https://github.com/64bitpandas/amethyst"
- name: "instagram"
url: "https://instagram.com/i.am.the.tablet"
weight: 10
params:
@ -71,7 +71,7 @@ params:
enableMermaid: true
# Link to your Github repo
GitHubLink: https://github.com/64bitpandas/amethyst
GitHubLink: https://git.tablet.sh/tablet/amethyst
# Search (WIP)
search:
@ -86,10 +86,8 @@ params:
# Footer links
links:
- link_name: Website
link: https://bencuan.me
- link_name: Blog
link: https://blog.bencuan.me
- link_name: Instagram
link: https://instagram.com/i.am.the.tablet
# (Optional, default true) Controls table of contents visibility on right side of pages.
# Start and end levels can be controlled with markup.tableOfContents setting.