-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1011 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
on: push
name: Publish
jobs:
build:
name: Do it!
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: zola build
run: |
curl -s -L https://github.com/getzola/zola/releases/download/v0.9.0/zola-v0.9.0-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin
zola build
- name: index build
uses: docker://tinysearch/cli
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@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public
cname: www.krwenholz.com