upgrade: actions
This commit is contained in:
parent
bfdf7920e2
commit
8fda9eae9b
2 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/peaceiris/actions-hugo"
|
|||
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
|
||||
LABEL "maintainer"="peaceiris"
|
||||
|
||||
ENV HUGO_VERSION='0.56.3'
|
||||
ENV HUGO_VERSION='0.57.0'
|
||||
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
|
||||
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
|
||||
RUN wget "${HUGO_URL}" && \
|
||||
|
|
|
|||
|
|
@ -36,18 +36,18 @@ action "is-branch-master" {
|
|||
|
||||
action "build" {
|
||||
needs = "is-branch-master"
|
||||
uses = "peaceiris/actions-hugo@v0.56.3"
|
||||
uses = "peaceiris/actions-hugo@v0.57.0"
|
||||
args = ["--gc", "--minify", "--cleanDestinationDir"]
|
||||
}
|
||||
|
||||
action "deploy" {
|
||||
needs = "build"
|
||||
uses = "peaceiris/actions-gh-pages@v1.0.1"
|
||||
uses = "peaceiris/actions-gh-pages@v1.1.0"
|
||||
env = {
|
||||
PUBLISH_DIR = "./public"
|
||||
PUBLISH_BRANCH = "gh-pages"
|
||||
}
|
||||
secrets = ["ACTIONS_DEPLOY_KEY"]
|
||||
secrets = ["GITHUB_TOKEN]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue