Skip to content

Merge pull request #377 from seasalt-ai/fix-url #330

Merge pull request #377 from seasalt-ai/fix-url

Merge pull request #377 from seasalt-ai/fix-url #330

Workflow file for this run

name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v2
# Setup Hugo
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.92.2'
extended: true
# Setup Node.js
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20.11.0'
# Install dependencies
- name: Install dependencies
run: npm ci
# Clean previous builds
- name: Clean previous builds
run: npm run clean && npm run clean:pagefind
# Build the Hugo site for development
- name: Build Hugo site
run: npm run build:hugo
# Generate Pagefind index
- name: Generate Pagefind index
run: npm run index:pagefind
# Copy Pagefind files to static folder
- name: Copy Pagefind files to static
run: npm run copy:pagefind-generated
# Build the Hugo site for development
- name: Build Hugo site for dev
run: npm run build:dev
# Deploy to GitHub Pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: wiki.seasalt.ai