adding auto dep

This commit is contained in:
Peter Nashaat 2023-09-03 10:25:11 +00:00
parent 8fb1c3dad3
commit a4880d84b2
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
name: www2.ourworld.tf name: www2.freeflow.ourworld.tf
on: on:
push: push:
branches: [ development ] branches: [ development ]
@ -8,17 +8,17 @@ jobs:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: pushing latest change on www2.ourworld.tf - name: pushing latest change on www2.freeflow.ourworld.tf
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: www2.ourworld.tf host: www2.freeflow.ourworld.tf
username: webuser username: webuser
key: ${{ secrets.TF_SECRET }} key: ${{ secrets.TF_SECRET }}
port: 34022 port: 34022
script: | script: |
cd websites/www2/www_ourworld_tf/ cd websites/tmp/www_freeflownation/
git log -1 git log -1
git fetch git fetch
git reset --hard origin/development git reset --hard origin/development
sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml sed -i "s/https:\/\/freeflow.ourworld.tf/https:\/\/www2.freeflow.ourworld.tf/g" config.toml
./build.sh ./build.sh

View File

@ -1,4 +1,4 @@
name: ourworld.tf name: freeflow.ourworld.tf
on: on:
push: push:
branches: [ master ] branches: [ master ]
@ -8,17 +8,17 @@ jobs:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: pushing latest change on ourworld.tf - name: pushing latest change on freeflow.ourworld.tf
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: ourworld.tf host: freeflow.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/tmp/www_freeflownation/
git log -1 git log -1
git fetch git fetch
git reset --hard origin/master git reset --hard origin/master
sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml sed -i "s/https:\/\/www2.freeflow.ourworld.tf/https:\/\/freeflow.ourworld.tf/g" config.toml
./build.sh ./build.sh

View File

@ -1,5 +1,5 @@
# The URL the site will be built for # The URL the site will be built for
base_url = "https://www.freeflownation.org" base_url = "https://freeflow.ourworld.tf"
# Change this to your own URL! Please note this variable **must** be uncommented. # Change this to your own URL! Please note this variable **must** be uncommented.
title = "FreeFlow Nation" title = "FreeFlow Nation"