www_duniayetu/.github/workflows/tf_update_dev.yml

25 lines
695 B
YAML
Raw Normal View History

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-08-15 05:21:03 +00:00
username: ${{ secrets.TF_USER }}
2023-05-25 12:06:13 +00:00
key: ${{ secrets.TF_SECRET }}
2023-08-15 05:21:03 +00:00
port: ${{ secrets.TF_PORT }}
2023-05-25 12:06:13 +00:00
script: |
2023-08-15 05:21:03 +00:00
cd websites/www2/www_ourworld_freezone/
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