Skip to content

IMSMWU/GitHub-Pages-deploy

 
 

Repository files navigation

GitHub Pages deploy

A GitHub Action to deploy a static site on GitHub Pages.

Deploy to GitHub Pages

Build Status

Usage

name: GitHub Pages deploy
on:
  push:
    branches:
      - master
jobs:
  checkout-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master
    - name: Deploy to GitHub Pages
      uses: Cecilapp/GitHub-Pages-deploy@master
      env:
        EMAIL: arnaud@ligny.org
        GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        BUILD_DIR: _site

Warning

If you get the following fatal error that means you forgot to create the requires access token (see configuration): fatal: could not read Username for 'https://github.com': No such device or address.

Configuration

  • EMAIL (required): A - verified - email
  • GH_TOKEN (required): A Personal Access Tokens stored in the ACCESS_TOKEN project Secret
  • BUILD_DIR (required): Where static/public files are (_site by default)
  • CNAME: The custom domain name (ie: narno.com)
  • JEKYLL_SITE: Set YES in case of a Jekyll site (NO by default)

License

GitHub Pages deploy is a free software distributed under the terms of the MIT license.

© Arnaud Ligny

Packages

No packages published

Languages

  • Shell 94.4%
  • Dockerfile 5.6%