@@ -46,6 +46,7 @@ The above example step will deploy `./public` directory to `gh-pages` branch.
46
46
- [⭐️ Suppressing empty commits](#%EF%B8%8F-suppressing-empty-commits)
47
47
- [⭐️ Keeping existing files](#%EF%B8%8F-keeping-existing-files)
48
48
- [⭐️ Deploy to external repository](#%EF%B8%8F-deploy-to-external-repository)
49
+ - [⭐️ Script mode](#%EF%B8%8F-script-mode)
49
50
- [Tips and FAQ](#tips-and-faq)
50
51
- [⭐️ Use the latest and specific release](#%EF%B8%8F-use-the-latest-and-specific-release)
51
52
- [⭐️ 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
196
197
197
198
# ## ⭐️ `GITHUB_TOKEN`
198
199
199
- > **NOTES**: Do not use `GITHUB_TOKEN`.
200
+ > ⚠️ **NOTES**: `GITHUB_TOKEN` works only on a **private** repository .
200
201
>
201
202
> This action supports `GITHUB_TOKEN` but it has some problems to deploy to GitHub Pages. GitHub team is investigating that. See [Issue # 9]
202
203
@@ -247,6 +248,7 @@ For example:
247
248
248
249
By default, your files are published to the repository which is running this action.
249
250
If 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`.
250
252
251
253
For example :
252
254
@@ -265,6 +267,26 @@ When you use `ACTIONS_DEPLOY_KEY`, set your private key to the repository which
265
267
266
268
Be careful, `GITHUB_TOKEN` has no permission to access to external repositories.
267
269
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
+
268
290
<div align="right">
269
291
<a href="#table-of-contents">Back to TOC ☝️</a>
270
292
</div>
0 commit comments