Compare commits

..

No commits in common. "main" and "fetch_all_transactions" have entirely different histories.

2 changed files with 19 additions and 41 deletions

View File

@ -1,18 +1,11 @@
name: Deploy to Dappbundle
on:
push:
branches:
- main
- master
name: Workflow push to Dappbundle
on: [push]
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
name: Build
runs-on: self-hosted
steps:
- name: Deploy via SSH
- name: Executing remote command
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.R_HOST }}
@ -20,35 +13,20 @@ jobs:
password: ${{ secrets.P_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
set -e
BASE="${{ secrets.DEPLOYMENT_LOCATION }}"
APP="${{ github.event.repository.name }}"
echo "== Ensuring dappbundle repo exists =="
if [ ! -d "$BASE/dappbundle/.git" ]; then
git clone git@gitea.ranchimall.net:RanchiMall/dappbundle.git "$BASE/dappbundle"
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle" ]; then
echo "Folder exists. Skipping Git clone."
else
cd "$BASE/dappbundle"
git pull
echo "Folder does not exist. Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/ && git clone https://github.com/ranchimall/dappbundle.git
fi
echo "== Refreshing app bundle =="
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" ]; then
echo "Repository exists. Remove folder "
rm -r "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}"
fi
rm -rf "$BASE/dappbundle/$APP"
git clone git@gitea.ranchimall.net:RanchiMall/$APP.git "$BASE/dappbundle/$APP"
echo "Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}
echo "== Cleaning git metadata =="
cd "$BASE/dappbundle/$APP"
rm -rf .git .github .gitignore .gitattributes
cd "$BASE/dappbundle"
git config user.email "ranchimallfze@gmail.com"
git config user.name "ranchimall"
git add .
git commit -m "Auto-update $APP" || echo "No changes"
git push
cd "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" && rm -rf .gitattributes .git .github .gitignore
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/ && git add . && git commit -m "Workflow updating files of ${{ github.event.repository.name }}" && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"

View File

@ -1,2 +1,2 @@
# MATIC blockchain wallet
Matic blockchain wallet linked with FLO address
# bscwallet
Binance Chain Wallet linked with FLO Wallet