-
Open Google APIs Console
-
Create project
-
Open credentials view via side menu
-
Create "OAuth client ID"
- web application
-
Download credentials JSON file by ID list
- save as
credentials.json
- save as
-
Put
credentials.json
this directory -
$ pipenv install
-
$ pipenv run python get_creds_base64.py
-
Save printed base64 string to
GOOGLE_API_CREDENTIALS
environment -
Set environment below
GOOGLE_API_GMAIL_TO
GOOGLE_API_GMAIL_FROM
-
Test run
$ pipenv run send_email.py
-
Set environments to CircleCI env
-
Push branch to Github (-> CircleCI do nothing)
-
Push TAG to Github (-> CircleCI exec
send_mail.py
)