www_duniayetu/.github/workflows/tf_update_prod.yml

25 lines
665 B
YAML
Raw Normal View History

2023-08-06 09:02:56 +00:00
name: freezone.ourworld.tf
2023-05-25 12:06:13 +00:00
on:
push:
branches: [ master ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
2023-08-06 09:02:56 +00:00
- name: pushing latest change on 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: 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/www_ourworld_freezone/
2023-05-25 12:06:13 +00:00
git log -1
2023-07-19 09:52:37 +00:00
git fetch
git reset --hard origin/master
2023-08-06 09:02:56 +00:00
sed -i "s/https:\/\/www2.freezone.ourworld.tf/https:\/\/freezone.ourworld.tf/g" config.toml
2023-05-25 12:06:13 +00:00
./build.sh