chore: add condition to send inactive PRs (#46) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Agent to Fly.io | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/agent/**' | |
- '.github/workflows/deploy-agent.yml' | |
# Allow manual triggering | |
workflow_dispatch: | |
# Environment variables available to all jobs and steps in this workflow | |
env: | |
NODE_VERSION: '18' | |
jobs: | |
deploy: | |
name: Deploy Agent | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Flyctl | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy to Fly.io | |
run: | | |
echo "Deploying Agent to Fly.io..." | |
flyctl deploy --config apps/agent/fly.toml --ha=false | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |