From a4934c9b55dacb933032a4d6a46a2f2c76defdcf Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:54:42 +0900 Subject: [PATCH] migrate: GitHub Actions beta v2 (HCL to YAML) --- .github/main.workflow | 9 --------- .github/workflows/push.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/push.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index c03be47..0000000 --- a/.github/main.workflow +++ /dev/null @@ -1,9 +0,0 @@ -workflow "Main workflow" { - on = "push" - resolves = ["docker-build"] -} - -action "docker-build" { - uses = "actions/docker/cli@master" - args = "build -t peaceiris/actions-hugo ." -} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..1d932a7 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,17 @@ +name: Push workflow + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Docker build + uses: actions/docker/cli@master + with: + args: build -t peaceiris/actions-hugo . + - name: Check Hugo version + uses: actions/docker/cli@master + with: + args: run peaceiris/actions-hugo:latest version