2023-07-19 09:52:37 +00:00
|
|
|
name: ourzone.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-07-19 09:52:37 +00:00
|
|
|
- name: pushing latest change on ourzone.ourworld.tf
|
2023-05-25 12:06:13 +00:00
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
2023-07-19 09:52:37 +00:00
|
|
|
host: ourzone.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/www_ourzone/
|
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
|
|
|
|
sed -i "s/https:\/\/www2.ourzone.ourworld.tf/https:\/\/ourzone.ourworld.tf/g" config.toml
|
2023-05-25 12:06:13 +00:00
|
|
|
./build.sh
|