2019-08-15 13:26:15 +02:00
|
|
|
name: Push workflow
|
|
|
|
|
2019-08-15 16:48:21 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- invalid-tag
|
2019-08-15 13:26:15 +02:00
|
|
|
|
|
|
|
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)
|