Update README.md

This commit is contained in:
Shohei Ueda 2019-11-22 12:40:57 +09:00 committed by GitHub
parent 81110be679
commit 83eaab4031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 1 deletions

View File

@ -15,6 +15,8 @@ This deploy action can be combined simply and freely with [Static Site Generator
[Static Site Generators]: https://www.staticgen.com/
The next example step will deploy `./public` directory to the remote `gh-pages` branch.
```yaml
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
@ -26,7 +28,7 @@ This deploy action can be combined simply and freely with [Static Site Generator
PUBLISH_DIR: ./public
```
The above example step will deploy `./public` directory to `gh-pages` branch.
Three tokens are supported.
| Token | Private repo | Public repo | Protocol | Setup |
|---|:---:|:---:|---|---|
@ -34,6 +36,20 @@ The above example step will deploy `./public` directory to `gh-pages` branch.
| `PERSONAL_TOKEN` | ✅️ | ✅️ | HTTPS | Necessary |
| `ACTIONS_DEPLOY_KEY` | ✅️ | ✅️ | SSH | Necessary |
Do you want to skip the docker build step? OK, the script mode is available.
```yaml
- name: Deploy
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
SCRIPT_MODE: true
run: |
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2.5.0/entrypoint.sh
bash ./entrypoint.sh
```
## Table of Contents