-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (44 loc) · 1.41 KB
/
publish.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
49
50
51
52
53
name: website
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ master ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Pull bibeasy
uses: actions/checkout@main
with:
repository: neuropoly/bibeasy
path: ./bibeasy/
- name: Build bibeasy
run: |
cd ./bibeasy/ && pip install .
cd ../publications/
python ../bibeasy/bibeasy/scripts/bibeasy_cli.py -l ../bibeasy/bibeasy/labels_publication.txt --type article conf-article --reverse --freshen-cache --combine -o gen.md
- name: remove unused files
run: |
rm publications/gen-article.md publications/gen-conf-article.md
- name: Install dependencies
run: |
pip install '.[sphinx]'
- name: Build website
run: |
make html
# TODO: use @v4 when it comes out
# to benefit from symlink-awareness: https://github.com/peaceiris/actions-gh-pages/issues/643
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
cname: neuro.polymtl.ca