-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugo에 쉽게 글쓰기 #9
Comments
지금 이 글도 Github Issue를 사용해 작성하고 있습니다. 이슈 제목과 코멘트를 붙여서 하나의 마크다운 문서로 만들어 Hugo에 포스팅합니다. |
How to
|
Uses it
|
Workflows워크플로우는 이슈를 마크다운으로 컨버팅하는 것과 휴고를 배포하는 것으로 구성되어 있습니다. Converting Issuesname: "Convert issues to markdowns"
on:
workflow_dispatch:
jobs:
convert_issues_to_markdown_job:
runs-on: ubuntu-latest
name: Convert issues to markdowns.
steps:
- name: checkout
uses: actions/checkout@v1
- name: Fetch issues and generate markdowns
uses: skyfe79/hugo-with-github-issues@v1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: 'blog.contents'
owner: 'skyfe79'
skip-author: 'utterances-bot'
use-issue-seperator: 'false'
issue-state: 'closed'
output: 'content/posts'
- name: Commit files
run: |
git config --local user.email "skyfe79@gmail.com"
git config --local user.name "sungcheol kim"
git add .
git commit -m "Add Posts"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} Deploy Hugoname: Deploy Hugo
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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: Disable quotePath
run: git config core.quotePath false
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.59.0'
extended: true
- name: Build
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: skyfe79/skyfe79.github.io
publish_branch: master
publish_dir: ./public
cname: blog.burt.pe.kr |
Tags
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hugo에 쉽게 글쓰기를 고민하던 중에 Github Issue를 사용해 보면 어떨까? 라는 생각이 들었습니다. Github Issue는 이미지 업로드도 지원하기 때문에 마크다운 문서에 이미지를 포함하는 것도 아주 쉽게 될 것 같았습니다.
The text was updated successfully, but these errors were encountered: