Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions .github/workflows/CustomerWebpage-Deploy-WF.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
name: CustomerWebpage-Deploy-WF

on:
push:
branches:
- main
- customer-map
paths:
- "frontend/customer-webapp/**"
- ".github/workflows/CustomerWebpage-Deploy-WF.yml"
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

defaults:
run:
working-directory: frontend/customer-webapp

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -17,16 +32,28 @@ jobs:
node-version: '22.x'

- name: Install dependencies
working-directory: ./frontend
run: npm install
run: npm ci

- name: Lint application
run: npm run lint

- name: Build React app
working-directory: ./frontend
- name: Build application
run: npm run build
env:
VITE_MAP_TILE_URL: ${{ vars.VITE_MAP_TILE_URL }}
VITE_SIMULATOR_API_BASE: ${{ vars.VITE_SIMULATOR_API_BASE }}

- name: Azure Login
if: github.ref == 'refs/heads/main'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Deploy to Azure Web App
if: github.ref == 'refs/heads/main'
uses: azure/webapps-deploy@v3
with:
app-name: 'WA-DeliveryBot-dev'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_1BA6A9C76C684517B5106BD8ACF4CE5B }}
package: ./frontend/dist
app-name: WA-DeliveryBot-dev
package: frontend/customer-webapp/dist
7 changes: 7 additions & 0 deletions frontend/customer-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/customer-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"leaflet": "^1.9.4",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-router-dom": "^7.15.1"
Expand Down
Loading
Loading