Skip to content

Commit

Permalink
updates build page
Browse files Browse the repository at this point in the history
  • Loading branch information
edelstone committed Sep 10, 2024
1 parent 01fae03 commit 0026c65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("*.png");
eleventyConfig.addPassthroughCopy("*.ico");
eleventyConfig.addPassthroughCopy("*.webmanifest");
eleventyConfig.addPassthroughCopy("*.CNAME");
eleventyConfig.addPassthroughCopy("CNAME");

};
38 changes: 11 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
name: Build Eleventy
on:
push:
branches:
- main
name: Eleventy Build
on: [push]

jobs:
build:
runs-on: ubuntu-latest

build_deploy:
runs-on: ubuntu-18.04
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
- uses: actions/checkout@master
- name: Build
uses: TartanLlama/actions-eleventy@master
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v3
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
publish_dir: _site
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0026c65

Please sign in to comment.