Skip to content

Commit

Permalink
Add GitHub Action to build and deploy to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
natebass committed Aug 10, 2023
1 parent 71b45ac commit 58ea961
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Eleventy to GitHub pages

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build Eleventy
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
branch: gh-pages

0 comments on commit 58ea961

Please sign in to comment.