Compare commits

...

6 Commits

Author SHA1 Message Date
SaketAnand
11e622fb1f Update deployment workflow (main + master support + cleanup)
All checks were successful
Deploy to Dappbundle / Deploy (push) Successful in 41s
2026-03-06 17:43:26 +05:30
SaketAnand
f3ebee7644 Update Gitea deployment workflow
All checks were successful
Deploy to Dappbundle / Deploy (push) Successful in 25s
2026-03-06 01:59:42 +05:30
SaketAnand
4166c3dc40
Merge pull request #2 from void-57/patch-1
Some checks failed
Workflow push to Dappbundle / Build (push) Has been cancelled
Update git push user in workflow file
2026-01-12 18:33:41 +05:30
fb5b1367a7
Update git push user in workflow file 2026-01-12 18:30:50 +05:30
SaketAnand
28ccab5391
Update README.md 2026-01-01 23:57:29 +05:30
SaketAnand
6307809ea0
Update README.md 2026-01-01 23:57:03 +05:30
2 changed files with 41 additions and 19 deletions

View File

@ -1,11 +1,18 @@
name: Workflow push to Dappbundle
on: [push]
name: Deploy to Dappbundle
on:
push:
branches:
- main
- master
jobs:
build:
name: Build
runs-on: self-hosted
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Executing remote command
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.R_HOST }}
@ -13,20 +20,35 @@ jobs:
password: ${{ secrets.P_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle" ]; then
echo "Folder exists. Skipping Git clone."
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"
else
echo "Folder does not exist. Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/ && git clone https://github.com/ranchimall/dappbundle.git
cd "$BASE/dappbundle"
git pull
fi
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
echo "== Refreshing app bundle =="
echo "Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}
rm -rf "$BASE/dappbundle/$APP"
git clone git@gitea.ranchimall.net:RanchiMall/$APP.git "$BASE/dappbundle/$APP"
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"
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

View File

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