mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 10:47:28 +01:00
50f614060a0a7ec781054a4f1c8a28c1999c5e1f
GitHub Actions for Hugo extended and Modules
Getting started
Create .github/workflows/gh-pages.yml
An example with GitHub Actions for deploying to GitHub Pages with Static Site Generators
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: build
uses: peaceiris/actions-hugo@v0.58.2
with:
args: --gc --minify --cleanDestinationDir
- name: deploy
uses: peaceiris/actions-gh-pages@v2.2.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
License
About the author
Description
Languages
TypeScript
82.4%
Shell
7.5%
Dockerfile
4.6%
Makefile
4%
JavaScript
1.5%