Skip to content

Commit

Permalink
Release v0.57.2 (#14)
Browse files Browse the repository at this point in the history
* enhance: GitHub Actions

* upgrade: hugo to v0.57.2

* enhance: Pull Request template
  • Loading branch information
peaceiris authored Aug 19, 2019
1 parent 79fb16c commit 55565fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- [ ] upgrade: hugo to ``
- [ ] update: tag on readme
- [ ] release: `` with **master** branch
- [ ] release: from **master** branch
10 changes: 6 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Docker build and print Hugo version
if: github.event.deleted == false
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
run: |
docker build -t peaceiris/actions-hugo . &&
docker run peaceiris/actions-hugo:latest version ||
(echo -e "\e[31mfailed to build\e[m" && exit 1)
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
docker run ${DOCKER_IMAGE} version ||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.57.1'
ENV HUGO_VERSION='0.57.2'
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}" && \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![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)
[![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">

Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: build
uses: peaceiris/[email protected].1
uses: peaceiris/[email protected].2
with:
args: --gc --minify --cleanDestinationDir
- name: deploy
Expand Down

0 comments on commit 55565fc

Please sign in to comment.