-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.42 KB
/
github-pages.yml
File metadata and controls
59 lines (48 loc) · 1.42 KB
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
54
55
56
57
58
59
name: Build and deploy Jekyll site to GitHub Pages
defaults:
run:
shell: bash -l {0}
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
github-pages:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies for the members map
run: |
sudo apt-get update -y
sudo apt-get install -y firefox
- name: Clone GitHub repo
uses: actions/checkout@v2
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: _scripts/environment.yml
environment-name: gccr
cache-environment: true
- name: Run Zotero script
env:
ZOTERO_KEY: ${{ secrets.ZOTERO_KEY }}
run: python _scripts/zotero_to_yml.py
- name: Build members map and list
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
MEMBERS_SPREADSHEET_ID: ${{ secrets.MEMBERS_SPREADSHEET_ID }}
run: |
mkdir -p assets/data
python _scripts/make_members_data.py
- name: Build committees section
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
COMMITTEES_SPREADSHEET_ID: ${{ secrets.COMMITTEES_SPREADSHEET_ID }}
run: python _scripts/make_committees_data.py
- name: Build and deploy
uses: helaili/jekyll-action@v2
with:
target_branch: 'gh-pages'
token: ${{ secrets.JEKYLL_PAT }}