Skip to content

Commit 7392e88

Browse files
committed
Minor Changes
1 parent 58e8f52 commit 7392e88

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v4
2929

30-
- name: Authenticate with Google Cloud using Service Account Key
31-
run: |
32-
echo "${{ secrets.GCP_SA_KEY }}" > "${{ github.workspace }}/gcp-key.json"
33-
export GOOGLE_APPLICATION_CREDENTIALS="${{ github.workspace }}/gcp-key.json"
34-
gcloud auth activate-service-account --key-file="${{ github.workspace }}/gcp-key.json"
30+
- uses: google-github-actions/auth@v1
31+
with:
32+
credentials_json: ${{ secrets.GCP_KEY_JSON }}
33+
34+
- name: List GCP Projects
35+
run: gcloud projects list
3536

3637
- name: Configure Docker for the Artifact Registry
3738
run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet

0 commit comments

Comments
 (0)