@@ -869,3 +869,57 @@ The `/workspace/screenshots/` directory should:
869869- Contain a ` .gitkeep ` file to ensure it's tracked in version control
870870- Be committed to the repository
871871- Store all development and testing screenshots
872+
873+ ## GitHub Pages Deployment
874+
875+ ### Automatic Deployment
876+
877+ The project is automatically deployed to GitHub Pages when changes are pushed to the ` main ` branch. The deployment workflow:
878+
879+ 1 . Builds the Home Assistant panel in production mode
880+ 2 . Creates a GitHub Pages site with the panel.js file
881+ 3 . Deploys to https://fx.github.io/liebe/
882+
883+ ### Manual Deployment
884+
885+ To manually trigger a deployment:
886+
887+ 1 . Go to Actions tab in GitHub
888+ 2 . Select "Deploy to GitHub Pages" workflow
889+ 3 . Click "Run workflow"
890+
891+ ### GitHub Pages Configuration
892+
893+ The deployment uses:
894+
895+ - ** Build script** : ` npm run build:ha:prod `
896+ - ** Source** : GitHub Actions
897+ - ** Branch** : Automated deployment (no gh-pages branch)
898+ - ** URL** : https://fx.github.io/liebe/
899+
900+ ### Files Created
901+
902+ - ` /panel.js ` - The Home Assistant panel module
903+ - ` /index.html ` - Landing page with installation instructions
904+
905+ ### Deployment Workflow
906+
907+ The ` .github/workflows/deploy.yml ` file handles:
908+
909+ 1 . Building the production panel
910+ 2 . Creating GitHub Pages artifacts
911+ 3 . Deploying to GitHub Pages
912+ 4 . Setting proper permissions
913+
914+ ### Usage
915+
916+ Users can use the GitHub Pages hosted version by adding to their Home Assistant configuration:
917+
918+ ``` yaml
919+ panel_custom :
920+ - name : liebe-panel
921+ sidebar_title : Liebe
922+ sidebar_icon : mdi:heart
923+ url_path : liebe
924+ module_url : https://fx.github.io/liebe/panel.js
925+ ` ` `
0 commit comments