add: CI filters

This commit is contained in:
peaceiris 2019-08-15 23:48:21 +09:00
parent d079faea7e
commit 46fbb349ce
1 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,9 @@
name: Push workflow
on: [push]
on:
push:
tags:
- invalid-tag
jobs:
test:
@ -8,8 +11,9 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Docker build
if: github.event_name != 'delete' && github.event_name != 'create'
if:
github.event.deleted == false
run: docker build -t peaceiris/actions-hugo .
- name: Check Hugo version
if: github.event_name != 'delete' && github.event_name != 'create'
if: success()
run: docker run peaceiris/actions-hugo:latest version