Skip to content

Commit

Permalink
Remove redundant deploy statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Nov 19, 2024
1 parent 9371c1f commit 779659f
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@ on:
- main
workflow_dispatch:

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Check if the app name is registered in fly.io
run: ./scripts/deploy_to_fly_io.sh

- name: Deploy to Fly
run: |
flyctl deploy --remote-only --config fly.toml --yes
flyctl secrets set OPENAI_API_KEY=$OPENAI_API_KEY
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}{% endraw %}
- name: Check if the app name is registered in fly.io and deploy
run: ./scripts/deploy_to_fly_io.sh{% endraw %}

0 comments on commit 779659f

Please sign in to comment.