forked from xaprb/story
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.2 KB
/
main.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
name: CI
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Update theme
# (Optional)If you have the theme added as submodule, you can pull it and use the most updated version
run: git submodule update --init --recursive
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.68.3"
extended: true
- name: Build
# remove --minify tag if you do not need it
# docs: https://gohugo.io/hugo-pipes/minification/
run: hugo --baseURL https://story-customized.tchinchow.net/ --config exampleSite/config.toml --contentDir exampleSite/content --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.DEPLOYMENT_TOKEN }}
keep_files: false
enable_jekyll: false
# user_name: <username>
# user_email: <username@email.com>
# external_repository: <username>/<username>.github.io
publish_dir: ./public
publish_branch: gh-pages
cname: story-customized.tchinchow.net