Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Eleventy Action

Actions
Build your Eleventy-based static website
v1
Star (111)

GitHub Action for Eleventy

Use this action to build your static website with Eleventy.

To use it, create a .github/workflows/eleventy_build.yml file which uses this repository as an action.

Here's an example which builds the site with this action, then deploys to GitHub Pages with peaceiris/actions-gh-pages:

name: Eleventy Build
on: [push]

jobs:
  build_deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@master
      - name: Build
        uses: TartanLlama/[email protected]
      - name: Deploy
        uses: peaceiris/[email protected]
        env:
          PUBLISH_DIR: _site 
          PUBLISH_BRANCH: gh-pages
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

You can pass additional arguments to eleventy through the args option:

- name: Build
  uses: TartanLlama/[email protected]
  with:
    args: <additional arguments>

Eleventy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Build your Eleventy-based static website
v1

Eleventy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.