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
|
|
|
|
- name: Docker build
|
2019-08-15 16:48:21 +02:00
|
|
|
if:
|
|
|
|
github.event.deleted == false
|
2019-08-15 13:26:15 +02:00
|
|
|
run: docker build -t peaceiris/actions-hugo .
|
|
|
|
- name: Check Hugo version
|
2019-08-15 16:48:21 +02:00
|
|
|
if: success()
|
2019-08-15 13:26:15 +02:00
|
|
|
run: docker run peaceiris/actions-hugo:latest version
|