diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e0f13db..868fb1a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -10,15 +10,18 @@ jobs: name: Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: auth + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.GCP_SA_KEY }} - name: deploy - uses: google-github-actions/deploy-cloud-functions@main + uses: google-github-actions/deploy-cloud-functions@2 with: name: bot runtime: go113 entry_point: BotEndpoint memory_mb: 128 region: asia-northeast1 - credentials: ${{ secrets.GCP_SA_KEY }} env_vars: BOT_VERIFICATION_TOKEN=${{ secrets.BOT_VERIFICATION_TOKEN}},BOT_ACCESS_TOKEN=${{ secrets.BOT_ACCESS_TOKEN }},BOT_SYSTEM_MESSAGE_CHANNEL_ID=${{ secrets.BOT_SYSTEM_MESSAGE_CHANNEL_ID }},TRAQ_ORIGIN=${{ secrets.TRAQ_ORIGIN }} project_id: ${{ secrets.GCP_PROJECT_ID }}