Update README.md #4
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 Flask Frontend to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main # Change if your default branch is different | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 | |
| - name: Install Flask Dependencies | |
| run: | | |
| pip install -r Assets/Resources/maps/requirements.txt | |
| - name: Prepare Frontend for Deployment | |
| run: | | |
| mkdir -p dist | |
| cp -r Assets/Resources/maps/templates/* dist/ | |
| echo "HERE Maps Traffic API Deployment" > dist/index.html | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: dist |