-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 836 Bytes
/
deploy.yml
File metadata and controls
29 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: google cloud functions 배포
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Deploy Function
run: |
gcloud functions deploy tarakyubot \
--runtime nodejs20 \
--trigger-http \
--allow-unauthenticated \
--region asia-northeast3 \
--entry-point handle \
--set-env-vars SLACK_BOT_TOKEN='${{ secrets.SLACK_BOT_TOKEN }}',SLACK_SIGNING_SECRET='${{ secrets.SLACK_SIGNING_SECRET }}',OPENAI_API_KEY='${{ secrets.OPENAI_API_KEY }}'