Skip to content

Commit

Permalink
add 11ty workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichWessel committed Mar 3, 2024
1 parent cb48d6e commit 33c99e3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function(eleventyConfig){
dir : {
input: 'src',
includes: '_includes',
output: '_site',
output: 'docs',
},
templateFormats: ['md', 'njk', 'html'],
markdownTemplateEngine : 'njk',
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/eleventy_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Eleventy Build


on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2


- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'


- run: npm ci


- run: npm run build


- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist
Empty file added .nojekyll
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "npx eleventy",
"build": "eleventy",
"start": "npx eleventy --serve",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit 33c99e3

Please sign in to comment.