Skip to content

Add website with Eleventy based off Opensac.org theme. (#25) #1

Add website with Eleventy based off Opensac.org theme. (#25)

Add website with Eleventy based off Opensac.org theme. (#25) #1

name: Deploy Next.js static site to GitHub pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 21.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 Next.js static site
run: |
npm install
npm run build-ghpages
- name: Ignore Jekyll
run: |
touch _site/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
git-config-name: Automated
git-config-email: [email protected]
branch: gh-pages