Skip to content

initial dif labs website (#42) #7

initial dif labs website (#42)

initial dif labs website (#42) #7

Workflow file for this run

name: Deploy Hugo Website to GitHub Pages
on:
push:
branches:
- main # Adjust to your default branch name
pull_request:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3
# Set up Hugo
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# Build the Hugo website
- name: Build Hugo Website
run: |
cd website
hugo -d public # Builds the site into the `public` directory
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/public