Compare commits
11 Commits
developmen
...
cc303aa318
Author | SHA1 | Date | |
---|---|---|---|
cc303aa318 | |||
1a56787f29 | |||
d7888815c7 | |||
f3b384483b | |||
e0f7b50f38 | |||
bbe0f98957 | |||
75c52042f8 | |||
de4b151714 | |||
1a25541544 | |||
80f7ce8c49 | |||
70989c01c2 |
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 fetch
|
||||
git reset --hard origin/development
|
||||
sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml
|
||||
./build.sh
|
24
.github/workflows/tf_update_prod.yml
vendored
Normal file
24
.github/workflows/tf_update_prod.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
job_one:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www_ourworld_tf/
|
||||
git log -1
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml
|
||||
./build.sh
|
@@ -1,5 +1,5 @@
|
||||
# The URL the site will be built for
|
||||
base_url = "https://www2.ourworld.tf"
|
||||
base_url = "https://www.ourworld.tf"
|
||||
# Change this to your own URL! Please note this variable **must** be uncommented.
|
||||
|
||||
title = "OURWORLD"
|
||||
|
Reference in New Issue
Block a user