Skip to content

Commit

Permalink
minor revision
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 4, 2024
2 parents 3a701b6 + 7fb77f1 commit 76c6360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ 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 }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}

jobs:
prepare:
Expand Down Expand Up @@ -91,7 +89,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 }}
- run: curl -f "${{ steps.deploy.outputs.url }}"
- uses: marocchino/sticky-pull-request-comment@v2
Expand All @@ -102,7 +99,7 @@ jobs:
promote:
runs-on: ubuntu-latest
if: (needs.prepare.outputs.MAIN == 'true')
if: ${{ github.ref == 'refs/heads/main' }}
needs: [prepare, deploy]
timeout-minutes: 3
steps:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/deploy_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ concurrency:
env:
CI: true
PROJECT_ID: ${{ secrets.PROJECT_ID }}
MAIN: ${{ github.ref == 'refs/heads/main' }}
SERVICE: audiora-api
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
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:
Expand Down Expand Up @@ -95,7 +93,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 }}
- run: curl -f "${{ steps.deploy.outputs.url }}"
- uses: marocchino/sticky-pull-request-comment@v2
Expand All @@ -110,7 +107,7 @@ jobs:
promote:
runs-on: ubuntu-latest
if: (needs.prepare.outputs.MAIN == 'true')
if: ${{ github.ref == 'refs/heads/main' }}
needs: [prepare, deploy]
timeout-minutes: 2
steps:
Expand Down

0 comments on commit 76c6360

Please sign in to comment.