adding auto deployment to dev branch

This commit is contained in:
peternashaat 2022-08-11 14:25:26 +00:00
parent 832af9305b
commit fb567fb3ec

View File

@ -1,23 +1,23 @@
# name: Threefold_io
# on:
# push:
# branch: [ development ]
name: ourverse.tf
on:
push:
branch: [ development ]
# jobs:
# job_one:
# name: Deploy
# runs-on: ubuntu-latest
# steps:
# - name: pushing latest change on www2.threefold.io
# uses: appleboy/ssh-action@master
# with:
# host: www2.threefold.io
# username: root
# key: ${{ secrets.TF_SECRET }}
# port: 22
# script: |
# cd /opt/www_threefold_io/
# git log -1
# git restore static/css/index.css
# git pull
# npm run build
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.ourverse.tf
uses: appleboy/ssh-action@master
with:
host: www2.ourverse.tf
username: root
key: ${{ secrets.TF_SECRET }}
port: 22
script: |
cd /opt/www_ourverse/
git log -1
git restore static/css/index.css
git pull
npm run build