2022-12-19 12:06:13 +00:00
|
|
|
name: ourphone.ourworld.tf
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branch: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
job_one:
|
|
|
|
name: Deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: pushing latest change on ourphone.ourworld.tf
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ourphone.ourworld.tf
|
|
|
|
username: webuser
|
|
|
|
key: ${{ secrets.TF_SECRET }}
|
|
|
|
port: 34022
|
|
|
|
script: |
|
2023-01-24 09:07:45 +00:00
|
|
|
cd websites/www_ourphone/
|
2022-12-19 12:06:13 +00:00
|
|
|
git log -1
|
2022-12-21 08:41:22 +00:00
|
|
|
git restore .
|
2022-12-19 12:06:13 +00:00
|
|
|
git pull
|
2022-12-19 12:22:05 +00:00
|
|
|
bash build.sh
|