fixing workflows

This commit is contained in:
Peter Nashaat
2023-06-13 10:06:37 +00:00
parent f0c5a2806b
commit d50b329657
4 changed files with 5 additions and 48 deletions

View File

@@ -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 }}

View File

@@ -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

View File

@@ -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