Pin tinysearch build #61
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
on: push | |
name: Publish | |
jobs: | |
build: | |
name: Do it! | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: zola build | |
uses: docker://ghcr.io/getzola/zola:v0.18.0 | |
with: | |
entrypoint: zola | |
args: build | |
- name: Build tinysearch | |
uses: docker://tinysearch/cli:0.8 | |
with: | |
entrypoint: tinysearch | |
args: --optimize --path public/search public/search/index.html | |
- name: fix search | |
run: | | |
mv public/search public/search_old | |
mkdir public/search | |
mv public/search_old/* public/search | |
rm -rf public/search_old | |
sudo chown runner:docker public/search/* | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./public | |
cname: www.krwenholz.com |