Skip to content

Change site directory in build.yml to 'docs'. #2

Change site directory in build.yml to 'docs'.

Change site directory in build.yml to 'docs'. #2

Workflow file for this run

name: Build Eleventy
on:
push:
branches:
- gh-pages
jobs:
build:
runs-on: debian-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js current
uses: actions/setup-node@v3
with:
node-version: current
- name: Install dependencies & build
run: |
npm ci
npm run build
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
#publish_dir is the folder on the docker instance which eleventy builds the pages to.
#it is not the docs folder in the repository
publish_dir: docs
#publish_branch is the branch in the repository.
#this is where you need to point GitHub pages
publish_branch: gh-pages