Skip to content

Merge pull request #14 from beyonddream/post-6 #30

Merge pull request #14 from beyonddream/post-6

Merge pull request #14 from beyonddream/post-6 #30

name: Build Eleventy
on:
push:
branches:
- main
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies & build
run: |
npm install
npm run build
# Configure GitHub Pages
- name: Configure Pages
uses: actions/configure-pages@v5
# Upload artifact for Pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4