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