Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: Add token difference table
  • Loading branch information
Shohei Ueda authored and GitHub committed Nov 21, 2019
1 parent 1f2f7ef commit 8aea305
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -20,12 +20,20 @@ This deploy action can be combined simply and freely with [Static Site Generator
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
```

The above example step will deploy `./public` directory to `gh-pages` branch.

| Token | Private repo | Public repo | Protocol | Setup |
|---|---|---|---|---|
| `GITHUB_TOKEN` | ✅️ | ❌️ | https | Unnecessary |
| `PERSONAL_TOKEN` | ✅️ | ✅️ | https | Necessary |
| `ACTIONS_DEPLOY_KEY` | ✅️ | ✅️ | SSH | Necessary |



## Table of Contents
Expand Down

0 comments on commit 8aea305

Please sign in to comment.