feat: add XCM teleport and CI/CD deployment workflow

Features:
- Add XCMTeleportModal for cross-chain HEZ transfers
- Support Asset Hub and People Chain teleports
- Add "Fund Fees" button with user-friendly tooltips
- Use correct XCM V3 format with teyrchain junction

Fixes:
- Fix PEZ transfer to use Asset Hub API
- Silence unnecessary pallet availability warnings
- Fix transaction loading performance (10 blocks limit)
- Remove Supabase admin_roles dependency

CI/CD:
- Add auto-deploy to VPS on main branch push
- Add version bumping on deploy
- Upload build artifacts for deployment
This commit is contained in:
2026-02-04 11:35:25 +03:00
parent 9d57473000
commit 02094a3635
18 changed files with 1049 additions and 113 deletions
+70 -8
View File
@@ -1,4 +1,4 @@
name: Quality Gate
name: Quality Gate & Deploy
on:
push:
@@ -7,9 +7,17 @@ on:
branches: [ main, develop ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
jobs:
# ========================================
# WEB APP - BUILD, LINT & TEST
# WEB APP - LINT, TEST & BUILD
# ========================================
web:
name: Web App
@@ -54,6 +62,12 @@ jobs:
working-directory: ./web
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: web-dist
path: web/dist/
# ========================================
# MOBILE APP - LINT & TEST
# ========================================
@@ -91,13 +105,61 @@ jobs:
run: npm run test
# ========================================
# SDK UI - BUILD & TEST (SKIPPED - uses root workspace)
# DEPLOY WEB APP TO VPS
# ========================================
# sdk-ui:
# name: SDK UI
# runs-on: ubuntu-latest
# # SDK UI requires the root yarn workspace, skipping for now
# if: false
deploy:
name: Deploy Web
runs-on: ubuntu-latest
needs: [web, mobile]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump version
working-directory: ./web
run: |
npm version patch --no-git-tag-version
VERSION=$(node -p "require('./package.json').version")
echo "NEW_VERSION=$VERSION" >> $GITHUB_ENV
cd ..
git add web/package.json
git commit -m "chore(web): bump version to $VERSION [skip ci]" || echo "No version change"
git push || echo "Nothing to push"
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: web-dist
path: dist/
- name: Deploy to VPS
uses: appleboy/scp-action@v1.0.0
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
source: 'dist/*'
target: '/var/www/subdomains/app'
strip_components: 1
- name: Post-deploy notification
run: |
echo "✅ Deployed web app v${{ env.NEW_VERSION }} to app.pezkuwichain.io"
# ========================================
# SECURITY CHECKS (INFORMATIVE)