This action is meant for Jekyll sites that have custom themes because GitHub supports only a limited number of Jekyll Themes. This action builds your Jekyll site then pushes it to your repo's gh-pages branch.
The token from secrets.GITHUB_TOKEN cannot trigger gh-pages build events. A new token must be created.
Name | Description | Required | Sample Value |
---|---|---|---|
github_token | A token to allow this action to perform git operations on your repo. | yes | ${{ secrets.DEPLOY_GH_PAGES_TOKEN }} |
git_commiter_name | The Git commiter's name. | yes | Emmanuel Corrales |
git_commiter_email | The Git commiter's email. | yes | contact@emcorrales |
custom_domain | The custom domain for your Github Pages. Use this if you want to use your own domain instead of the one provided by GitHub Pages(e.g. user.github.io). | no | example.com |
name: Deployment
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: emcorrales/[email protected]
with:
github_token: ${{ secrets.DEPLOY_GH_PAGES_TOKEN }}
git_commiter_name: Emmanuel Corrales
git_commiter_email: [email protected]
custom_domain: [email protected]