Deploy Flexiva to TriSys Site #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |