Skip to content

Commit e488a5b

Browse files
committed
fix: replace deprecated deploy action with gcloud command for Cloud Functions deployment
1 parent fb97813 commit e488a5b

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/deploy-gcf.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ jobs:
2020
service_account_key: ${{ secrets.GCP_SA_KEY }}
2121
export_default_credentials: true
2222

23-
- name: Deploy function
24-
uses: google-github-actions/deploy-cloud-functions@v2
25-
with:
26-
name: automaintainer-bot
27-
runtime: nodejs20
28-
entry_point: automaintainer-bot
29-
project_id: ${{ secrets.GCP_PROJECT_ID }}
30-
credentials: ${{ secrets.GCP_SA_KEY }}
31-
region: europe-west1
32-
source_dir: .
33-
env_vars: |
34-
NODE_ENV=production
35-
APP_ID=${{ secrets.APP_ID }}
36-
PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}
37-
WEBHOOK_SECRET=${{ secrets.WEBHOOK_SECRET }}
23+
- name: Deploy to GCF
24+
run: |
25+
gcloud functions deploy automaintainer-bot \
26+
--runtime nodejs20 \
27+
--allow-unauthenticated \
28+
--trigger-http \
29+
--entry-point automaintainer-bot \
30+
--set-env-vars APP_ID="${{secrets.APP_ID}}",PRIVATE_KEY="${{secrets.PRIVATE_KEY}}",WEBHOOK_SECRET="${{secrets.WEBHOOK_SECRET}}"

0 commit comments

Comments
 (0)