Skip to content

Deploy Flexiva to TriSys Site #17

Deploy Flexiva to TriSys Site

Deploy Flexiva to TriSys Site #17

Workflow file for this run

name: Deploy Flexiva to TriSys Site
on:
workflow_dispatch: # Manual trigger (keep this)
repository_dispatch: # NEW - Automatic trigger from main repo
types: [main-updated]
jobs:
deploy-customer:
runs-on: ubuntu-latest
steps:
- name: Download Latest Obfuscated Code
uses: actions/checkout@v4
with:
repository: TriSys-Business-Software/Flexiva
ref: gh-pages
token: ${{ secrets.MAIN_REPO_TOKEN }}
path: .
# ADD THIS NEW STEP HERE - Apply TriSys Branding
- name: Apply TriSys Branding
run: |
# Replace files with TriSys-branded versions
if [ -f "configuration/custom/flexiva.trisys.co.uk/custom.js" ]; then
cp configuration/custom/flexiva.trisys.co.uk/custom.js ./configuration/custom/custom.js
echo "✅ Replaced custom.js with flexiva.trisys.co.uk version"
fi
# We can also copy images/logos and CSS if we wish
echo "🎨 Custom branding applied successfully"
- name: Deploy to Customer GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
cname: flexiva.trisys.co.uk