Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TartanLlama committed Aug 21, 2019
1 parent 4895ded commit 79b3405
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# Eleventy Action
# GitHub Action for Eleventy

Use this action to build your static website with [Eleventy](https://www.11ty.io/).

To use it, create a `.github/workflows/eleventy_build.yml` file which [uses this repository](https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idsteps) as an action.

Here's an example which builds the site with this action, then deploys to GitHub Pages with [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages):

```yaml
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:

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

0 comments on commit 79b3405

Please sign in to comment.