@@ -46,6 +46,7 @@ The above example step will deploy `./public` directory to `gh-pages` branch.
4646 - [⭐️ Suppressing empty commits](#%EF%B8%8F-suppressing-empty-commits)
4747 - [⭐️ Keeping existing files](#%EF%B8%8F-keeping-existing-files)
4848 - [⭐️ Deploy to external repository](#%EF%B8%8F-deploy-to-external-repository)
49+ - [⭐️ Script mode](#%EF%B8%8F-script-mode)
4950- [Tips and FAQ](#tips-and-faq)
5051 - [⭐️ Use the latest and specific release](#%EF%B8%8F-use-the-latest-and-specific-release)
5152 - [⭐️ How to add `CNAME`](#%EF%B8%8F-how-to-add-cname)
@@ -196,7 +197,7 @@ By pulling docker images, you can reduce the overall execution time of your work
196197
197198# ## ⭐️ `GITHUB_TOKEN`
198199
199- > **NOTES**: Do not use `GITHUB_TOKEN`.
200+ > ⚠️ **NOTES**: `GITHUB_TOKEN` works only on a **private** repository .
200201>
201202> This action supports `GITHUB_TOKEN` but it has some problems to deploy to GitHub Pages. GitHub team is investigating that. See [Issue # 9]
202203
@@ -247,6 +248,7 @@ For example:
247248
248249By default, your files are published to the repository which is running this action.
249250If you want to publish to another repository on GitHub, set the environment variable `EXTERNAL_REPOSITORY` to `<username>/<external-repository>`.
251+ This option is available from `v2.5.0`.
250252
251253For example :
252254
@@ -265,6 +267,26 @@ When you use `ACTIONS_DEPLOY_KEY`, set your private key to the repository which
265267
266268Be careful, `GITHUB_TOKEN` has no permission to access to external repositories.
267269
270+ # ## ⭐️ Script mode
271+
272+ From `v2.5.0`, we can run this action as a shell script.
273+ There is no Docker build or pull step, so it will start immediately.
274+
275+ - `ACTIONS_DEPLOY_KEY` requires `SCRIPT_MODE : true`
276+ - ` *_TOKEN` do not require `SCRIPT_MODE`
277+
278+ ` ` ` yaml
279+ - name: Deploy
280+ env:
281+ ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
282+ PUBLISH_BRANCH: gh-pages
283+ PUBLISH_DIR: ./public
284+ SCRIPT_MODE: true
285+ run: |
286+ wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2.5.0/entrypoint.sh
287+ bash ./entrypoint.sh
288+ ` ` `
289+
268290<div align="right">
269291<a href="#table-of-contents">Back to TOC ☝️</a>
270292</div>
0 commit comments