adding workflows autodeployment
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/tf_update_dev.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/tf_update_dev.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
				
			|||||||
 | 
					name: www2.ourworld.tf
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [ development ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  job_one:
 | 
				
			||||||
 | 
					    name: Deploy
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - name: pushing latest change on www2.ourworld.tf
 | 
				
			||||||
 | 
					      uses: appleboy/ssh-action@master
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        host: www2.ourworld.tf
 | 
				
			||||||
 | 
					        username: webuser
 | 
				
			||||||
 | 
					        key: ${{ secrets.TF_SECRET }}
 | 
				
			||||||
 | 
					        port: 34022
 | 
				
			||||||
 | 
					        script: |
 | 
				
			||||||
 | 
					          cd websites/www2/www_ourworld_tf/
 | 
				
			||||||
 | 
					          git log -1
 | 
				
			||||||
 | 
					          git restore .
 | 
				
			||||||
 | 
					          git pull
 | 
				
			||||||
 | 
					          sed -i "s/https:\/\/ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml
 | 
				
			||||||
 | 
					          ./build.sh
 | 
				
			||||||
@@ -1,24 +1,24 @@
 | 
				
			|||||||
name: Ourworld.tf
 | 
					name: ourworld.tf
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branch: [ development ]
 | 
					    branches: [ master ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  job_one:
 | 
					  job_one:
 | 
				
			||||||
    name: Deploy
 | 
					    name: Deploy
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - name: pushing latest change on www.ourworld.tf
 | 
					    - name: pushing latest change on ourworld.tf
 | 
				
			||||||
      uses: appleboy/ssh-action@master
 | 
					      uses: appleboy/ssh-action@master
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        host: www.ourworld.tf
 | 
					        host: ourworld.tf
 | 
				
			||||||
        username: webuser
 | 
					        username: webuser
 | 
				
			||||||
        key: ${{ secrets.TF_SECRET }}
 | 
					        key: ${{ secrets.TF_SECRET }}
 | 
				
			||||||
        port: 34022
 | 
					        port: 34022
 | 
				
			||||||
        script: |
 | 
					        script: |
 | 
				
			||||||
          cd websites/www_ourworld_tf/
 | 
					          cd websites/www_ourworld_tf/
 | 
				
			||||||
          git log -1
 | 
					          git log -1
 | 
				
			||||||
 | 
					          git restore .
 | 
				
			||||||
          git pull
 | 
					          git pull
 | 
				
			||||||
          bash build.sh
 | 
					          sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml
 | 
				
			||||||
 | 
					          ./build.sh
 | 
				
			||||||
          
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user