From 3e2f32bb1e8079b1692a5a0f3fcc9a29f17e52cd Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 29 Sep 2019 17:36:37 +0900 Subject: [PATCH] docs: enhance description --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3e7abb..03e489d 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,27 @@ -## GitHub Actions for deploying to GitHub Pages +## GitHub Actions for GitHub Pages -A GitHub Action to deploy your static site to GitHub Pages with [Static Site Generators] (Hugo, MkDocs, Gatsby, GitBook, etc.) +This is a **GitHub Action** to deploy your static files to **GitHub Pages**. +This deploy action can be combined simply and freely with [Static Site Generators]. (Hugo, MkDocs, Gatsby, GitBook, etc.) [Static Site Generators]: https://www.staticgen.com/ +```yaml +- name: Deploy + uses: peaceiris/actions-gh-pages@v2.4.0 + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./public +``` + +The above example step will deploy `./public` directory to `gh-pages` branch. + -Table of Contents +*Table of Contents* - [Getting started](#getting-started) - [(1) Add ssh deploy key](#1-add-ssh-deploy-key)