fixing workflows
This commit is contained in:
17
.github/workflows/action.yml
vendored
17
.github/workflows/action.yml
vendored
@@ -1,17 +0,0 @@
|
|||||||
# 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 }}
|
|
||||||
26
.github/workflows/tf_update.yml
vendored
26
.github/workflows/tf_update.yml
vendored
@@ -1,26 +0,0 @@
|
|||||||
name: Threefold_io
|
|
||||||
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 config.toml
|
|
||||||
git restore static/css/index.css
|
|
||||||
git pull
|
|
||||||
sed -i "s/https:\/\/threefoldfoundation.github.io\/www_threefold_io/https:\/\/www2.threefold.io/g" config.toml
|
|
||||||
./build.sh
|
|
||||||
|
|
||||||
8
.github/workflows/update_www3.yml
vendored
8
.github/workflows/update_www3.yml
vendored
@@ -12,13 +12,13 @@ jobs:
|
|||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: www3.threefold.io
|
host: www3.threefold.io
|
||||||
username: root
|
username: webuser
|
||||||
key: ${{ secrets.TF_SECRET }}
|
key: ${{ secrets.TF_SECRET }}
|
||||||
port: 22
|
port: 34022
|
||||||
script: |
|
script: |
|
||||||
cd /opt/www3/www_threefold_io/
|
cd websites/www3/www_threefold_io/
|
||||||
git log -1
|
git log -1
|
||||||
git restore .
|
git restore .
|
||||||
git pull
|
git pull
|
||||||
sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml
|
sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml
|
||||||
./build.sh
|
bash build.sh
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user