-
Notifications
You must be signed in to change notification settings - Fork 63
44 lines (36 loc) · 1 KB
/
gh-pages.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
33
34
35
36
37
38
39
40
41
42
43
name: github pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-22.04
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_INDEX_FILE: ${{ secrets.ALGOLIA_INDEX_FILE }}
steps:
- uses: actions/checkout@main
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
#hugo-version: '0.75.1'
#hugo-version: '0.91.2'
#hugo-version : '0.93.2'
#hugo-version : '0.107.0'
hugo-version: '0.110.0'
extended: true
- name: Build
run: hugo --gc --minify --cleanDestinationDir
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
- name: Update Agnolia
run: |
npm install atomic-algolia
./node_modules/.bin/atomic-algolia