yurikoval / middleman-gh-pages-action

A GitHub Action to build and deploy Middleman to Github Pages
https://github.com/marketplace/actions/middleman-github-pages-action
16 stars 16 forks source link
gh-pages github-page middleman static-site static-site-generator

A GitHub Action to Build and Deploy Middleman to Github Pages

A GitHub Action for building and deploying a Middleman repo to its gh-pages branch.

Inputs

Example

Add this to .github/workflows/gh-pages.yml of your project.

name: Middleman

on:
  push:
    branches: [master]

jobs:
  build_and_deploy:
    name: Build & Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Build & Deploy to GitHub Pages
        with:
          REMOTE_BRANCH: gh-pages
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        uses: yurikoval/middleman-gh-pages-action@master