-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.08 KB
/
hugo.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
name: Publish Site
on:
push:
branches:
- master
schedule:
# Runs on UTC (7 hours ahead)
# Run At 02:00am MST on Monday (for blog), Wednesday, Thursday, and Friday
- cron: '0 9 * * 1,3,4,5'
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
submodules: true
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.PERSONAL_TOKEN }}
compressOnly: true
- name: Create New Pull Request If images were compressed
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@main
with:
title: Compressed Images
branch-suffix: timestamp
commit-message: Compressed Images
body: ${{ steps.calibre.outputs.markdown }}
- name: Publish Site
uses: chabad360/hugo-gh-pages@master
with:
githubToken: ${{ secrets.PERSONAL_TOKEN }}
cname: schulichignite.com