TO-DROP: ci: run Hugo/pagefind on push, for testing #1
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
env: | |
HUGO_VERSION: 0.119.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install Hugo | |
run: | | |
curl -Lo /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_$HUGO_VERSION_linux-amd64.deb && | |
sudo dpkg -i /tmp/hugo.deb | |
- name: run Hugo to build the pages | |
run: hugo | |
- name: run Pagefind to build the search index | |
run: npx -y pagefind --site public | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pages | |
path: public/ |