mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 04:12:17 +01:00
Release v0.57.2 (#14)
* enhance: GitHub Actions * upgrade: hugo to v0.57.2 * enhance: Pull Request template
This commit is contained in:
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
@@ -7,12 +7,14 @@ on:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Docker build and print Hugo version
|
||||
if: github.event.deleted == false
|
||||
env:
|
||||
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
|
||||
run: |
|
||||
docker build -t peaceiris/actions-hugo . &&
|
||||
docker run peaceiris/actions-hugo:latest version ||
|
||||
(echo -e "\e[31mfailed to build\e[m" && exit 1)
|
||||
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
|
||||
docker run ${DOCKER_IMAGE} version ||
|
||||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
||||
|
||||
Reference in New Issue
Block a user