npm run dev
curl 'http://localhost:8080?amount=101'
Interface:
interface BGGGamesRanksData {
date: string;
games: {
rank: number;
name: string;
year: string;
id: string;
}[];
}
gcloud iam service-accounts create github-actions
add roles (Service Account User
and Cloud Functions Admin
) to the service account you want to use to deploy the function
gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/cloudfunctions.admin"
gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/iam.serviceAccountUser"
gcloud iam service-accounts keys create key-file.json --iam-account=github-actions@appspot.gserviceaccount.com
cat key-file.json | base64