-
Jekyll works very well with GitHub pages. So does React. But Eleventy poses some difficulties. I'm sure this question has been answered umpteen times, and asked twice as often. I'm interested in what different solutions people use. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
I'm not hosting on GitHub myself (bot on the Shared Hosting provider called Uberspace), but hosting on GitHub would imply a Lastly, using the npm package gh-pages can be pointed to the output directory by eleventy as a |
Beta Was this translation helpful? Give feedback.
-
There's a tutorial written by @lea37 here: https://lea-tortay.com/writings/github-pages-eleventy/index.html |
Beta Was this translation helpful? Give feedback.
-
This is also a great tutorial, written by Sophia Brandt: https://www.rockyourcode.com/how-to-deploy-eleventy-to-github-pages-with-github-actions/ I used it to setup deployment for a page today in about 20 minutes, very well written! |
Beta Was this translation helpful? Give feedback.
-
now github has it own action to deploy page, here an updated pipeline name: build 11ty site
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies & build
run: |
npm install
npx @11ty/eleventy
- uses: actions/upload-pages-artifact@v2
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }} just make sure the output dir is |
Beta Was this translation helpful? Give feedback.
-
I think I also independently stumbled across a similar answer to @phineas-pta, I wrote a blog post about it here |
Beta Was this translation helpful? Give feedback.
There's a tutorial written by @lea37 here: https://lea-tortay.com/writings/github-pages-eleventy/index.html