Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.18 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.18 KB

Update Team Page

Helper application to add the team members to the website.

Process

Overview of the process:

  1. Retrieve data from a Google Sheet. This Google Sheets stores data collected via a Google Form (team self sign-up)
  2. Clone local copy of the website
  3. Update all information in databags/team.json from which the website generates the team page from
  4. Download images of team members via link provided in Google Sheet
  5. Commit files
  6. Push to website repo
  7. Make PR in website repo

Requirements

  1. Pytanis set up for Google Sheets, see
  2. Access to the Google Sheet with the team info
  3. Read, write and PR access to the website repo with personal token

Set-Up & Configuration

Add to a local .envfile:

TEAM_SHEET_ID = "put the team sheet id here"
TEAM_WORKSHEET_NAME = "put the worksheet name here"
GITHUB_TOKEN = "put the github token to access the website repo here"

The configuration file config.yml contains the mapping of the Google Sheet column data Review and update the configuration if the Google form changes when setting up a new year.

Run

Run team_page/main.py