adding auto deployment to www
This commit is contained in:
parent
a0f64935bd
commit
f2a6e1adce
23
.github/workflows/tf_update.yml
vendored
Normal file
23
.github/workflows/tf_update.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: ourparadise.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branch: [main]
|
||||
|
||||
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 /home/webuser/websites/www_ourparadise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
bash build.sh
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -25,4 +25,4 @@ run*
|
||||
install*
|
||||
public
|
||||
static/css
|
||||
tailwindcss
|
||||
tailwindcss
|
||||
|
Reference in New Issue
Block a user