Helper application to add the team members to the website.
Overview of the process:
- Retrieve data from a Google Sheet. This Google Sheets stores data collected via a Google Form (team self sign-up)
- Clone local copy of the website
- Update all information in
databags/team.json
from which the website generates the team page from - Download images of team members via link provided in Google Sheet
- Commit files
- Push to website repo
- Make PR in website repo
- Pytanis set up for Google Sheets, see
- Access to the Google Sheet with the team info
- Read, write and PR access to the website repo with personal token
Add to a local .env
file:
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 team_page/main.py