mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-21 01:53:16 +08:00
docs: Add new section about Script mode, close #37
This commit is contained in:
parent
5897005fde
commit
727fb697cd
17
README.md
17
README.md
@ -46,6 +46,7 @@ The above example step will deploy `./public` directory to `gh-pages` branch.
|
|||||||
- [⭐️ Suppressing empty commits](#%EF%B8%8F-suppressing-empty-commits)
|
- [⭐️ Suppressing empty commits](#%EF%B8%8F-suppressing-empty-commits)
|
||||||
- [⭐️ Keeping existing files](#%EF%B8%8F-keeping-existing-files)
|
- [⭐️ Keeping existing files](#%EF%B8%8F-keeping-existing-files)
|
||||||
- [⭐️ Deploy to external repository](#%EF%B8%8F-deploy-to-external-repository)
|
- [⭐️ Deploy to external repository](#%EF%B8%8F-deploy-to-external-repository)
|
||||||
|
- [⭐️ Script mode](#%EF%B8%8F-script-mode)
|
||||||
- [Tips and FAQ](#tips-and-faq)
|
- [Tips and FAQ](#tips-and-faq)
|
||||||
- [⭐️ Use the latest and specific release](#%EF%B8%8F-use-the-latest-and-specific-release)
|
- [⭐️ Use the latest and specific release](#%EF%B8%8F-use-the-latest-and-specific-release)
|
||||||
- [⭐️ How to add `CNAME`](#%EF%B8%8F-how-to-add-cname)
|
- [⭐️ How to add `CNAME`](#%EF%B8%8F-how-to-add-cname)
|
||||||
@ -265,6 +266,22 @@ When you use `ACTIONS_DEPLOY_KEY`, set your private key to the repository which
|
|||||||
|
|
||||||
Be careful, `GITHUB_TOKEN` has no permission to access to external repositories.
|
Be careful, `GITHUB_TOKEN` has no permission to access to external repositories.
|
||||||
|
|
||||||
|
### ⭐️ Script mode
|
||||||
|
|
||||||
|
From `v2.5.0`, we can run this action as a shell script.
|
||||||
|
There is no Docker build or pull step, so it will start immediately.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Deploy
|
||||||
|
env:
|
||||||
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
PUBLISH_BRANCH: gh-pages
|
||||||
|
PUBLISH_DIR: ./public
|
||||||
|
run: |
|
||||||
|
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2.5.0/entrypoint.sh
|
||||||
|
bash ./entrypoint.sh
|
||||||
|
```
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user