DEV Community

Discussion on: Join Us for the 2021 GitHub Actions Hackathon on DEV!

Collapse
bobbyiliev profile image
Bobby Iliev

This is amazing! Just completed my submission:

A link ot the GitHub Action:

GitHub logo bobbyiliev / ibis-build-action

GitHub Action to run ibis builds on merge

ibis-build-action

A GitHub Action to automatically run ibis builds on merge to main.

Ibis GitHub Action


Ibis

Ibis is a PHP tool that lets you write eBooks in Markdown.


Usage

In order to automatically build your Ibis PDF files, create a directory called .github/workflows/ and add a fill called ibis.yml with the following content:

name: Ibis eBook Generation
on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@main
      with:
        fetch-depth: '0'
    - name: Build Ibis Export Files
      uses: bobbyiliev/ibis-build-action@main
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        IBIS_PATH: './'
        IBIS_BRANCH: 'main'
        EMAIL: 'bobby@bobbyiliev.com'
        COMMIT_MESSAGE: 'Updated Ibis Exorted Files'
Enter fullscreen mode Exit fullscreen mode

Environment Variables

  • GITHUB_TOKEN: Required for permission to tag the repo. You can leave it as it is.
  • IBIS_PATH: The path to the Ibis…