www_ourverse.tf/.github/workflows/tf_update_dev.yml

25 lines
631 B
YAML
Raw Normal View History

2023-05-25 12:06:13 +00:00
name: www2.ourphone.ourworld.tf
on:
push:
branches: [ development ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.ourphone.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: www2.ourphone.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www2/www_ourphone/
git log -1
git restore .
git pull
sed -i "s/https:\/\/ourphone.ourworld.tf/https:\/\/www2.ourphone.ourworld.tf/g" config.toml
./build.sh