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

25 lines
586 B
YAML
Raw Normal View History

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