Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Dec 26, 2024
1 parent 4d24cff commit 6f46435
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Google Cloud Authentication
uses: google-github-actions/auth@v0
uses: google-github-actions/auth@v2
with:
project_id: ${{ secrets.PROJECT_ID }}
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
with:
# probot/example-google-cloud-function credentials provided by @bcoe
project_id: ${{ secrets.PROJECT_ID }}
service_account_key: ${{ secrets.SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
- name: Deploy to GCF
run: |
gcloud functions deploy example-google-cloud-function \
--runtime nodejs12 \
--runtime nodejs20 \
--allow-unauthenticated \
--trigger-http \
--entry-point probotApp \
Expand Down

0 comments on commit 6f46435

Please sign in to comment.