From a2e4fdca67f3904f7342c67d93dcd68df352196d Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 22 Aug 2019 02:54:38 +0900 Subject: [PATCH] enhance: yaml example --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6a0c629..027827b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ An example with [GitHub Actions for deploying to GitHub Pages with Static Site G ![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages) ```yaml -name: Main workflow +name: github-pages on: push: @@ -34,16 +34,17 @@ on: jobs: build-deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@master - name: build uses: peaceiris/actions-hugo@v0.57.2 + if: github.event.deleted == false with: args: --gc --minify --cleanDestinationDir - name: deploy uses: peaceiris/actions-gh-pages@v1.1.0 - if: contains(github.ref, 'master') + if: success() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PUBLISH_BRANCH: gh-pages