2023-08-06 09:02:56 +00:00
|
|
|
name: www2.freezone.ourworld.tf
|
2023-05-25 12:06:13 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ development ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
job_one:
|
|
|
|
name: Deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-06 09:02:56 +00:00
|
|
|
- name: pushing latest change on www2.freezone.ourworld.tf
|
2023-05-25 12:06:13 +00:00
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
2023-08-06 09:02:56 +00:00
|
|
|
host: www2.freezone.ourworld.tf
|
2023-05-25 12:06:13 +00:00
|
|
|
username: webuser
|
|
|
|
key: ${{ secrets.TF_SECRET }}
|
|
|
|
port: 34022
|
|
|
|
script: |
|
2023-07-19 09:52:37 +00:00
|
|
|
cd websites/www2/www_ourzone/
|
2023-05-25 12:06:13 +00:00
|
|
|
git log -1
|
2023-07-19 10:02:47 +00:00
|
|
|
git fetch
|
|
|
|
git reset --hard origin/development
|
2023-08-06 09:02:56 +00:00
|
|
|
sed -i "s/https:\/\/freezone.ourworld.tf/https:\/\/www2.freezone.ourworld.tf/g" config.toml
|
2023-05-25 12:06:13 +00:00
|
|
|
./build.sh
|