Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
68 changes: 19 additions & 49 deletions .github/workflows/eleventy_build.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,28 @@
name: Build and Deploy
name: Eleventy Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build site
run: npm run build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: site-build
path: docs/
retention-days: 1

deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: build
runs-on: ubuntu-latest

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: site-build
path: docs/

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
publish_branch: gh-pages
commit_message: 'Deploy: ${{ github.event.head_commit.message }}'
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
- uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '22.x'
- name: Install dependencies using a safe clean install, build and test
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONT_AWESOME_TOKEN }}"
npm ci --ignore-scripts
- name: Run Build
run: npm run build
- name: Deploy
uses: peaceiris/[email protected]
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
publish_branch: gh-pages
commit_message: ${{ github.event.head_commit.message }}
163 changes: 0 additions & 163 deletions docs/404.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

Loading
Loading