Mobile responsiveness fixes #6
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 to GitHub Pages with Chat Functionality | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build-and-deploy: | |
| environment: | |
| name: azure-openai | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create production config.js | |
| run: | | |
| cat > config.js << 'EOF' | |
| // Production Configuration - Generated by GitHub Actions | |
| window.AI_LEARNING_CONFIG = { | |
| AZURE_ENDPOINT: "${{ secrets.AZURE_ENDPOINT }}", | |
| API_KEY: "${{ secrets.API_KEY }}", | |
| DEPLOYMENT: "${{ secrets.DEPLOYMENT }}", | |
| API_VERSION: "${{ secrets.API_VERSION }}", | |
| ENVIRONMENT: "production" | |
| }; | |
| EOF | |
| echo "✅ Production config.js generated" | |
| - name: Verify config.js creation | |
| run: | | |
| if [ -f config.js ]; then | |
| echo "✅ config.js exists" | |
| echo "File size: $(wc -c < config.js) bytes" | |
| else | |
| echo "❌ config.js not found" | |
| exit 1 | |
| fi | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: '.' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: Clean up | |
| run: | | |
| echo "🧹 Deployment complete, config.js was only used for build" |