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