-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 941 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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