test gh-pages
This commit is contained in:
parent
8f9ad835e4
commit
9819f308f1
17
.github/workflows/action.yml
vendored
Normal file
17
.github/workflows/action.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# On every push this script is executed
|
||||||
|
on: push
|
||||||
|
name: Build and deploy GH Pages
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/development'
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: build_and_deploy
|
||||||
|
uses: shalzz/zola-deploy-action@v0.14.1
|
||||||
|
env:
|
||||||
|
# Target branch
|
||||||
|
PAGES_BRANCH: gh-pages
|
||||||
|
# Provide personal access token
|
||||||
|
TOKEN: ${{ secrets.TOKEN }}
|
23
.github/workflows/tf_update.yml
vendored
23
.github/workflows/tf_update.yml
vendored
@ -1,43 +1,24 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
name: Ourworld.tf
|
name: Ourworld.tf
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branch: [ master ]
|
|
||||||
=======
|
|
||||||
name: freeflow.life
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branch: [ development ]
|
branch: [ development ]
|
||||||
>>>>>>> template/master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job_one:
|
job_one:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
<<<<<<< HEAD
|
|
||||||
- name: pushing latest change on www.ourworld.tf
|
- name: pushing latest change on www.ourworld.tf
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: www.ourworld.tf
|
host: www.ourworld.tf
|
||||||
=======
|
|
||||||
- name: pushing latest change on www2.freeflow.life
|
|
||||||
uses: appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: www2.freeflow.life
|
|
||||||
>>>>>>> template/master
|
|
||||||
username: root
|
username: root
|
||||||
key: ${{ secrets.TF_SECRET }}
|
key: ${{ secrets.TF_SECRET }}
|
||||||
port: 22
|
port: 22
|
||||||
script: |
|
script: |
|
||||||
<<<<<<< HEAD
|
|
||||||
cd /opt/www_ourworld_tf/
|
cd /opt/www_ourworld_tf/
|
||||||
git log -1
|
git log -1
|
||||||
git pull
|
git pull
|
||||||
npm run build
|
npm run build
|
||||||
=======
|
|
||||||
cd /opt/www_freeflow_life
|
|
||||||
git log -1
|
|
||||||
git pull
|
|
||||||
bash build.sh
|
|
||||||
>>>>>>> template/master
|
|
||||||
|
Reference in New Issue
Block a user