🐛 Make grabrepos sensible, various bugfixes (#18) #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |