Check availability of GitHub Pages example
This commit is contained in:
parent
96d1aab484
commit
5ce6557e4f
22
README.md
22
README.md
|
@ -17,6 +17,7 @@ ___
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Workflow](#workflow)
|
* [Workflow](#workflow)
|
||||||
* [Sign commits](#sign-commits)
|
* [Sign commits](#sign-commits)
|
||||||
|
* [Check availability of GitHub Pages](#check-availability-of-github-pages)
|
||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [environment variables](#environment-variables)
|
* [environment variables](#environment-variables)
|
||||||
|
@ -94,6 +95,27 @@ You can use the [Import GPG](https://github.com/crazy-max/ghaction-import-gpg) G
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Check availability of GitHub Pages
|
||||||
|
|
||||||
|
You can use the [GitHub Status](https://github.com/crazy-max/ghaction-github-status) Action along with this check availability of GitHub Pages before deploying:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
-
|
||||||
|
name: Check GitHub Pages status
|
||||||
|
uses: crazy-max/ghaction-github-status@v1
|
||||||
|
with:
|
||||||
|
pages_threshold: major_outage
|
||||||
|
-
|
||||||
|
name: Deploy to GitHub Pages
|
||||||
|
if: success()
|
||||||
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
|
with:
|
||||||
|
target_branch: gh-pages
|
||||||
|
build_dir: public
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user