-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 831 Bytes
/
Copy pathbuild.yml
File metadata and controls
32 lines (28 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build Eleventy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-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: _site
#publish_branch is the branch in the repository.
#this is where you need to point GitHub pages
publish_branch: gh-pages