mirror of
				https://github.com/SphericalKat/medium.rip.git
				synced 2025-11-03 20:25:56 +00:00 
			
		
		
		
	refactor(deploy): run deploy workflow only if tests succeeded
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
		
							parent
							
								
									44b3f41a4b
								
							
						
					
					
						commit
						03b74fd90a
					
				
							
								
								
									
										19
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							@ -1,12 +1,17 @@
 | 
				
			|||||||
name: Fly Deploy
 | 
					name: Fly Deploy
 | 
				
			||||||
on: [push]
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_run:
 | 
				
			||||||
 | 
					    workflows: ["Run tests"]
 | 
				
			||||||
 | 
					    branches: [main]
 | 
				
			||||||
 | 
					    types:
 | 
				
			||||||
 | 
					      - completed
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
 | 
					  FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  deploy:
 | 
					  deploy:
 | 
				
			||||||
      name: Deploy to fly.io
 | 
					    name: Deploy to fly.io
 | 
				
			||||||
      runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
      steps:
 | 
					    steps:
 | 
				
			||||||
        - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
        - uses: superfly/flyctl-actions/setup-flyctl@master
 | 
					      - uses: superfly/flyctl-actions/setup-flyctl@master
 | 
				
			||||||
        - run: flyctl deploy --remote-only
 | 
					      - run: flyctl deploy --remote-only
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user