-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e2ead32
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM debian:9-slim | ||
|
||
LABEL "com.github.actions.name"="Build Hugo" | ||
LABEL "com.github.actions.description"="Build Hugo" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="purple" | ||
LABEL "repository"="https://github.com/lowply/action-hugo" | ||
LABEL "homepage"="https://github.com/lowply" | ||
LABEL "maintainer"="Sho Mizutani <[email protected]>" | ||
|
||
ADD https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_extended_0.54.0_Linux-64bit.deb /usr/local/src | ||
RUN dpkg -i /usr/local/src/hugo_extended_0.54.0_Linux-64bit.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# A GitHub Action for Hugo | ||
|
||
- Using [Hugo extended version 0.54](https://github.com/gohugoio/hugo/releases/tag/v0.54.0) | ||
- Using [debian:9-slim](https://hub.docker.com/_/debian/) for the base image | ||
|
||
Example workflow | ||
|
||
``` | ||
workflow "Build" { | ||
on = "push" | ||
resolves = ["Build Hugo"] | ||
} | ||
action "Build Hugo" { | ||
uses = "lowply/action-hugo@master" | ||
runs = "hugo" | ||
} | ||
``` |