Skip to content

chore(deploy): manual deploy and API-triggered deploy #28

chore(deploy): manual deploy and API-triggered deploy

chore(deploy): manual deploy and API-triggered deploy #28

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' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' && always()
name: Deploy website
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true