Check availability of GitHub Pages example

This commit is contained in:
CrazyMax 2020-05-23 23:15:35 +02:00
parent 96d1aab484
commit 5ce6557e4f
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -17,6 +17,7 @@ ___
* [Usage](#usage)
* [Workflow](#workflow)
* [Sign commits](#sign-commits)
* [Check availability of GitHub Pages](#check-availability-of-github-pages)
* [Customizing](#customizing)
* [inputs](#inputs)
* [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 }}
```
### 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
### inputs