Skip to content
box

GitHub Action

Middleman Github Pages Action

v1.0.0 Latest version

Middleman Github Pages Action

box

Middleman Github Pages Action

Deploying your Middleman repo to the gh-pages branch of the same repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Middleman Github Pages Action

uses: yurikoval/middleman-gh-pages-action@v1.0.0

Learn more about this action in yurikoval/middleman-gh-pages-action

Choose a version

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

  • GITHUB_REPOSITORY: Repo where built website will be published to (optional, defaults to repo name)
  • BUILD_LOCATION: Location where Middleman builds your website (optional, defaults to build)
  • GITHUB_ACTOR: Name of the deploy actor (optional, defaults to deploy)
  • REMOTE_BRANCH: Name of the branch to push the project to (optional, detaults to gh-pages)
  • SITE_LOCATION: Location of your Middleman project within the repo (optional, defaults to project root)

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