-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 1.13 KB
/
gh-pages-deployment.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: Build & deploy live site
on:
push:
branches:
- main
# schedule:
# # Run on the hour
# - cron: '0 * * * *'
jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Install Ruby Dev
run: sudo apt-get install ruby-dev
- name: Install AsciiDoctor
run: sudo gem install asciidoctor
- name: Install Rouge
run: sudo gem install rouge -v 3.30.0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.105.0'
- name: Build
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: rmoff/rmoff.github.io
publish_branch: master
# Without `keep_files` the `CNAME` file in the target repo will get removed
# and the custom domain configured for GitHub pages will get dropped every
# time the action runs…
keep_files: true