www_ourverse.tf/.github/workflows/tf_update_prod.yml
2023-07-19 09:52:37 +00:00

25 lines
618 B
YAML

name: ourzone.ourworld.tf
on:
push:
branches: [ master ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on ourzone.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: ourzone.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www_ourzone/
git log -1
git fetch
git reset --hard origin/master
sed -i "s/https:\/\/www2.ourzone.ourworld.tf/https:\/\/ourzone.ourworld.tf/g" config.toml
./build.sh