Skip to content

Commit

Permalink
Add 11ty GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Mar 16, 2024
1 parent f4a4cf4 commit 899ca49
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/eleventy_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Eleventy Build

on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:

jobs:
build_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@master
- name: Build
uses: TartanLlama/actions-eleventy@master
with:
install_dependencies: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
publish_dir: _site
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: json.com

0 comments on commit 899ca49

Please sign in to comment.