migrate: GitHub Actions beta v2 (HCL to YAML)
This commit is contained in:
parent
b101526f7f
commit
a4934c9b55
2 changed files with 17 additions and 9 deletions
9
.github/main.workflow
vendored
9
.github/main.workflow
vendored
|
|
@ -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 ."
|
||||
}
|
||||
17
.github/workflows/push.yml
vendored
Normal file
17
.github/workflows/push.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue