generated from formspree/blogophonic-hugo
-
Notifications
You must be signed in to change notification settings - Fork 49
37 lines (31 loc) · 1.09 KB
/
apero-docs-preview.yaml
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
on:
schedule:
# * is a special character in YAML so we have to quote this string
# 3am Pacific = 11am UTC
# https://crontab.guru is your friend
- cron: '0 12 * * *'
name: theme-preview
jobs:
theme-preview:
runs-on: macOS-latest
if: github.event_name == 'schedule' || contains(github.event.head_commit.message, '[theme]')
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Install dependencies
run: |
install.packages("blogdown")
blogdown::install_hugo("0.80.0", extended=TRUE, force=TRUE)
blogdown::install_theme(theme="hugo-apero/hugo-apero", force=TRUE)
shell: Rscript {0}
- name: Build website
run: |
Rscript -e 'blogdown::build_site(baseURL = "https://hugo-apero.github.io/apero/")'
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages # default