mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-07-27 19:22:51 +02:00
09ca2911f5b68cfe573a5f29b1e22a466cf27f72
* upgrade: hugo to v0.56.1 * update: readme for v0.56.1
GitHub Actions for Hugo extended and Modules
Getting started
Create main.workflow
An example with GitHub Actions for deploying to GitHub Pages with Static Site Generators
workflow "GitHub Pages" {
on = "push"
resolves = ["deploy"]
}
action "is-branch-master" {
uses = "actions/bin/filter@master"
args = "branch master"
}
action "build" {
needs = "is-branch-master"
uses = "peaceiris/actions-hugo@v0.56.1"
args = ["--gc", "--minify", "--cleanDestinationDir"]
}
action "deploy" {
needs = "build"
uses = "peaceiris/actions-gh-pages@v1.0.1"
env = {
PUBLISH_DIR = "./public"
PUBLISH_BRANCH = "gh-pages"
}
secrets = ["ACTIONS_DEPLOY_KEY"]
}
License
MIT License - peaceiris/actions-hugo
About the author
Languages
TypeScript
90.9%
JavaScript
3.5%
Shell
2.6%
Dockerfile
1.6%
Makefile
1.4%
