actions-hugo/.github/workflows/push.yml
2019-08-16 00:29:52 +09:00

18 lines
419 B
YAML

name: Push workflow
on:
push:
tags:
- invalid-tag
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker build and print Hugo version
if: github.event.deleted == false
run: |
docker build -t peaceiris/actions-hugo . &&
docker run peaceiris/actions-hugo:latest version ||
(echo -e "\e[31mfailed to build\e[m" && exit 1)