-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (44 loc) · 1.28 KB
/
pelican.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
48
# https://nimbinatus.com/2019/09/28/pelican-and-ghpages/
# https://github.com/nimbinatus/nimbinatus.github.io/blob/source/.github/workflows/pelican.yml
# https://github.com/JamesIves/github-pages-deploy-action
# https://github.com/actions/setup-python
name: Pelican site CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install language packs
run: |
sudo apt-get update
sudo apt-get install language-pack-en language-pack-zh-hant language-pack-th
- uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build site
run: |
make download
make publish
- name: Add nojekyll
run: |
touch ./output/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPOSITORY_NAME: siongui/siongui.github.io
BRANCH: master
FOLDER: output
CLEAN: true