From 8a404614cccea0275bc53187c9aa025c853344ad Mon Sep 17 00:00:00 2001 From: Chukwuma Nwaugha Date: Mon, 4 Nov 2024 04:57:36 +0000 Subject: [PATCH 1/2] Update deploy.yml to use direct GitHub ref check for main branch condition --- .github/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ee03baa..5e7994a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,6 @@ concurrency: env: CI: true PROJECT_ID: ${{ secrets.PROJECT_ID }} - MAIN: ${{ github.ref == 'refs/heads/main' }} SERVICE: audiora OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} @@ -117,8 +116,8 @@ jobs: promote: runs-on: ubuntu-latest - if: (needs.prepare.outputs.MAIN == 'true') - needs: [prepare, deploy, lint] + if: ${{ github.ref == 'refs/heads/main' }} + needs: [prepare, deploy] timeout-minutes: 3 steps: - uses: google-github-actions/auth@v2 From 7fb77f11a18d766c2aa37448d9a34d2a9da9325a Mon Sep 17 00:00:00 2001 From: Chukwuma Nwaugha Date: Mon, 4 Nov 2024 04:58:40 +0000 Subject: [PATCH 2/2] remove bucket_name from env --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5e7994a..5bd5aab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,6 @@ env: GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME: ${{ secrets.BUCKET_NAME }} jobs: prepare: @@ -103,7 +102,6 @@ jobs: GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME=${{ secrets.BUCKET_NAME }} flags: "--allow-unauthenticated --memory=32Gi --cpu=8 --execution-environment=gen2 --concurrency=80 --max-instances=10"