-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (40 loc) · 1.13 KB
/
gh-pages.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
44
45
46
47
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup pelican
shell: bash
run: |
pip install wheel pyclean pelican beautifulsoup4
git submodule update --init
- name: Build
run: |
pyclean ./
pelican --delete-output-directory --debug --fatal errors content -s publishconf.py
- name: HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@master
with:
root: output/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: false
publish_dir: ./output
cname: www.psychoinformatics.de
user_name: 'AutoBuild'
user_email: '[email protected]'
commit_message: ${{ github.event.head_commit.message }}