mirror of
https://github.com/System-End/Function.git
synced 2026-04-19 19:45:08 +00:00
Update deploy.yml
This commit is contained in:
parent
46deb1c0ef
commit
da8658f766
1 changed files with 13 additions and 6 deletions
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
|
|
@ -8,16 +8,23 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Google Cloud SDK
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
- name: Authenticate gcloud
|
||||
uses: google-github-actions/auth@v2.1.0
|
||||
with:
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
||||
|
||||
- name: Set up Google Cloud SDK
|
||||
uses: google-github-actions/setup-gcloud@v2.1.0
|
||||
with:
|
||||
version: '479.0.0' # Update with the appropriate version
|
||||
project_id: showcase-function
|
||||
install_components: 'beta' # Install additional components if required
|
||||
skip_install: false
|
||||
|
||||
- name: Deploy Cloud Function
|
||||
run: gcloud functions deploy ExchangeTokenFunction --runtime nodejs20 --trigger-http --allow-unauthenticated
|
||||
run: |
|
||||
gcloud functions deploy ExchangeTokenFunction --runtime nodejs20 --trigger-http --allow-unauthenticated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue