Release v0.57.2 (#14)

* enhance: GitHub Actions

* upgrade: hugo to v0.57.2

* enhance: Pull Request template
This commit is contained in:
Shohei Ueda 2019-08-20 00:52:44 +09:00 committed by GitHub
parent 79fb16c8e4
commit 55565fc0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,3 @@
- [ ] upgrade: hugo to `` - [ ] upgrade: hugo to ``
- [ ] update: tag on readme - [ ] update: tag on readme
- [ ] release: `` with **master** branch - [ ] release: from **master** branch

View File

@ -7,12 +7,14 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Docker build and print Hugo version - name: Docker build and print Hugo version
if: github.event.deleted == false if: github.event.deleted == false
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
run: | run: |
docker build -t peaceiris/actions-hugo . && docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
docker run peaceiris/actions-hugo:latest version || docker run ${DOCKER_IMAGE} version ||
(echo -e "\e[31mfailed to build\e[m" && exit 1) (echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)

View File

@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/peaceiris/actions-hugo"
LABEL "homepage"="https://github.com/peaceiris/actions-hugo" LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
LABEL "maintainer"="peaceiris" LABEL "maintainer"="peaceiris"
ENV HUGO_VERSION='0.57.1' ENV HUGO_VERSION='0.57.2'
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit" 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" ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
RUN wget "${HUGO_URL}" && \ RUN wget "${HUGO_URL}" && \

View File

@ -1,6 +1,7 @@
[![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE) [![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest) [![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest)
[![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases) [![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases)
[![GitHub Actions status](https://github.com/peaceiris/actions-hugo/workflows/Push%20workflow/badge.svg)](https://github.com/peaceiris/actions-hugo/actions)
<img width="400" alt="GitHub Actions for Hugo extended" src="./images/ogp.svg"> <img width="400" alt="GitHub Actions for Hugo extended" src="./images/ogp.svg">
@ -37,7 +38,7 @@ jobs:
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: build - name: build
uses: peaceiris/actions-hugo@v0.57.1 uses: peaceiris/actions-hugo@v0.57.2
with: with:
args: --gc --minify --cleanDestinationDir args: --gc --minify --cleanDestinationDir
- name: deploy - name: deploy