Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
sytmxl committed May 7, 2022
1 parent 1136a0c commit 1dd0c85
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
Empty file added .hugo_build.lock
Empty file.
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

4 changes: 4 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL: http://sytmxl.github.io/myblog
languageCode: en-us
title: My New Hugo Site
theme: "PaperMod"
6 changes: 6 additions & 0 deletions content/posts/my-first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "My First Post"
date: 2022-05-04T13:25:38+08:00
draft: false
---
我的第一篇博客
32 changes: 32 additions & 0 deletions workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: github pages

on:
push:
branches:
- main # Set a branch to deploy
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 1dd0c85

Please sign in to comment.