This repository has been archived on 2025-06-11. You can view files and clone it, but cannot push or open issues or pull requests.
www_ourparadise/.github/workflows/tf_update_prod.yml
2023-05-18 10:18:21 +00:00

25 lines
624 B
YAML

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