A sample of converting Markdown to PDF and deploying to Google Drive with CircleCI 2.0
- Converts Markdown to PDF with markdown-pdf
- Deploys PDF to Google Drive with gdrive
- Uses Service Account feature to make CircleCI enable to deploy to Google Drive
- Go to Google API Console
- Create a new Service Account in some project
- Download the credential json file
- Make the credential json "one line" and copy it
- Go to https://circleci.com/gh/{user}/{project}/edit#env-vars and add the copied credential as a new envvar named
GOOGLE_SERVICE_ACCOUNT_CREDENTIAL
- Show the email address of the Service Account and copy it
- Share the target folder to the Service Account with "edit" access, and copy the folder id
- Replace
{parent_folder_id_here}
of .circleci/config.yml with the copied folder id