From 01f236ae4b604894b0ab632bca14cd8e67b149fd Mon Sep 17 00:00:00 2001 From: Saptak S Date: Sat, 9 Nov 2024 16:07:22 +0530 Subject: [PATCH] Adds the github workflows --- .github/workflows/eleventy_build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/eleventy_build.yml diff --git a/.github/workflows/eleventy_build.yml b/.github/workflows/eleventy_build.yml new file mode 100644 index 0000000..4c342e5 --- /dev/null +++ b/.github/workflows/eleventy_build.yml @@ -0,0 +1,22 @@ +name: Eleventy Build +on: + push: + branches: + - 'main' + +jobs: + build_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + - name: Build + uses: TartanLlama/actions-eleventy@v1.3 + with: + install_dependencies: true + args: --pathprefix 2023 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: _site + publish_branch: gh-pages + github_token: ${{ secrets.GITHUB_TOKEN }}