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)