Skip to content

Website CI

Website CI #27

Workflow file for this run

name: Website CI
on:
push:
branches: [master]
pull_request:
branches: [master]
repository_dispatch:
types: [website-deploy]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install requirements
run: |
pip install -r requirements.txt
wget https://github.com/gohugoio/hugo/releases/download/v0.102.3/hugo_extended_0.102.3_Linux-64bit.deb -O /tmp/hugo.deb
sudo dpkg -i /tmp/hugo.deb
- name: Build Website
run: |
./grabrepos.py
hugo
- if: github.event_name == 'push' && always()
name: Deploy website
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true