actions-hugo/.github/workflows/push.yml

19 lines
419 B
YAML
Raw Normal View History

name: Push workflow
2019-08-15 16:48:21 +02:00
on:
push:
tags:
- invalid-tag
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2019-08-15 17:08:44 +02:00
- 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 ||
2019-08-15 17:29:52 +02:00
(echo -e "\e[31mfailed to build\e[m" && exit 1)