From 899ca49229aa30b0be8875efc006efd5e1c23bf4 Mon Sep 17 00:00:00 2001 From: BigBlueHat Date: Sat, 16 Mar 2024 12:25:54 -0400 Subject: [PATCH] Add 11ty GitHub Action --- .github/workflows/eleventy_build.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/eleventy_build.yaml diff --git a/.github/workflows/eleventy_build.yaml b/.github/workflows/eleventy_build.yaml new file mode 100644 index 0000000..d0cd21c --- /dev/null +++ b/.github/workflows/eleventy_build.yaml @@ -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 \ No newline at end of file