actions-hugo/.github/workflows/push.yml
Shohei Ueda 03083c655e
Release v0.58.0 (#17)
* upgrade: Hugo to v0.58.0
* fix: push workflow
* remove: tag filter from push workflow
* upgrade: base image golang to 1.13.0

- https://gohugo.io/news/0.58.0-relnotes/
- https://discourse.gohugo.io/t/hugo-benchmarks-go-1-12-vs-go-1-13/20572
2019-09-05 01:43:34 +09:00

21 lines
494 B
YAML

name: Push workflow
on:
push:
branches:
- master
- 'release-v*'
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Docker build and print Hugo version
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
run: |
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)