forked from Vishalshanmugam/24CYS333-Internet-of-Things
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 883 Bytes
/
deploy.yml
File metadata and controls
38 lines (30 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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