- Fork the repository to have your own copy of the code
- Provision the service account in your GCP project with the following permissions:
- Cloud Functions Admin
- Service Account User
- Storage Admin
- Set the github secret (
GCP_SERVICE_ACCOUNT
) with the content of the service account json key - Set the following github variables:
- (
CLOUD_FUNCTION_NAME
): name of the Cloud Function to create - (
GCS_BUCKET_NAME
): name of the Cloud Storage bucket to create - (
GCS_FILE_NAME
): name of the file to save to the bucket - (
REGION
): the region where Cloud Function will be deployed
- (
(OPTIONAL) Push Notification via Pushover:
If you would like to run a test on successful build, add the following variable:
- set the variable (
RUN_TESTS
) totrue
If you would like to get push notifications on successful build or cleanup, add the following secrets and the variable:
- set the secret (
NOTIFY_TOKEN
) to match your pushover key token - set the secret (
NOTIFY_USER
) to match your pushover user token - set the variable (
NOTIFY
) totrue