actions-hugo/.github/workflows/push.yml
Shohei Ueda 55565fc0f6
Release v0.57.2 (#14)
* enhance: GitHub Actions

* upgrade: hugo to v0.57.2

* enhance: Pull Request template
2019-08-20 00:52:44 +09:00

20 lines
515 B
YAML

name: Push workflow
on:
push:
tags:
- invalid-tag
jobs:
test:
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 . --file Dockerfile --tag ${DOCKER_IMAGE} &&
docker run ${DOCKER_IMAGE} version ||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)