Skip to content

Commit

Permalink
Merge pull request #66 from GCCR/cleanup-deps
Browse files Browse the repository at this point in the history
Cleanup dependencies
  • Loading branch information
kwcooper authored Jun 4, 2022
2 parents 06a07ee + 96ba75d commit 2385be4
Show file tree
Hide file tree
Showing 10 changed files with 971 additions and 855 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,38 @@ jobs:
run: |
sudo apt-get update -y
sudo apt-get install -y firefox
- name: Clone GitHub repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8.5
- name: Cache pip
uses: actions/cache@v2

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r _scripts/requirements.txt
environment-file: _scripts/environment.yml
environment-name: gccr
cache-env: 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 }}

20 changes: 0 additions & 20 deletions .github/workflows/jekyll.yml

This file was deleted.

Loading

0 comments on commit 2385be4

Please sign in to comment.