Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 581 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 581 Bytes

hugo

Use Hugo with Github Actions

Usage

Build Hugo site and push to GitHub. See my blog

name: publish

on:
  push:
    branches:
    - master
    
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@master
    - name: build
      uses: github-actions-x/hugo@master
    - name: push
      uses: github-actions-x/commit@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        push_branch: 'master'
        commit_message: 'publish'