From df00cef80898a3d2959c52f589b9a91ae0fc6491 Mon Sep 17 00:00:00 2001 From: motoki317 Date: Tue, 25 Jul 2023 15:41:32 +0900 Subject: [PATCH] fix actions syntax --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42b23e9..7713f2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,14 +13,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + + - id: auth + name: Authenticate to Google Cloud + uses: google-github-actions/auth@v1 + with: + credentials_json: '${{ secrets.GCP_SA_KEY }}' + - name: deploy - uses: google-github-actions/deploy-cloud-functions@main + uses: google-github-actions/deploy-cloud-functions@v1 with: name: sysad-webhook-logger runtime: nodejs16 entry_point: webhook memory_mb: 128 region: asia-northeast1 - credentials: ${{ secrets.GCP_SA_KEY }} env_vars: GITHUB_SECRET=${{ secrets.WEBHOOK_GITHUB_SECRET }},WEBHOOK_SECRET=${{ secrets.WEBHOOK_SECRET }},GITEA_SECRET=${{ secrets.GITEA_SECRET }} - project_id: ${{ secrets.GCP_PROJECT_ID }}