Skip to content

Merge pull request #94 from samvera/93-samvera-connect #100

Merge pull request #94 from samvera/93-samvera-connect

Merge pull request #94 from samvera/93-samvera-connect #100

Workflow file for this run

# Pulled from this guide:
# https://www.linkedin.com/pulse/deploy-nextjs-app-github-pages-federico-antu%C3%B1a/
name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: ""
steps:
- name: Get files
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: npm
- name: Install packages
run: npm ci
- name: Build Site Navigation
run: npm run build-site-nav
- name: Export static files
run: npm run build
- name: Add .nojekyll file
run: touch ./out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out