Skip to content

Commit e5e3d76

Browse files
committed
use github actions to build pages
1 parent 01f91ca commit e5e3d76

File tree

3 files changed

+34
-93
lines changed

3 files changed

+34
-93
lines changed

.github/workflows/gh-pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- website
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-20.04
12+
permissions:
13+
contents: write
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.10"
23+
24+
- run: python3 -m pip install -r requirements.txt
25+
- run: git submodule update --init
26+
- run: python3 -m pelican content -vvv -o output -s pelicanconf.py
27+
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
if: ${{ github.ref == 'refs/heads/website' }}
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./output
34+
publish_branch: master

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

fabfile.py

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)