-
Notifications
You must be signed in to change notification settings - Fork 151
24 lines (21 loc) · 868 Bytes
/
deploy.yml
File metadata and controls
24 lines (21 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Site Deployment
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: curl --location https://github.com/gohugoio/hugo/releases/download/v0.139.2/hugo_extended_withdeploy_0.139.2_Linux-64bit.tar.gz | tar -vxzO hugo > hugo && chmod a+x hugo
- run: ./hugo --environment production --minify
- run: ./hugo deploy --environment production --invalidateCDN true --maxDeletes -1
- run: yarn install
- name: Update search index
run: yarn run algolia ${{ secrets.ALGOLIA_ADMIN_KEY }}