-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.02 KB
/
Copy pathazure-webapp-frontend.yml
File metadata and controls
47 lines (36 loc) · 1.02 KB
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
39
40
41
42
43
44
45
46
47
name: Build and Deploy Flowboard Frontend to Azure Web App
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: yarn install
- name: Lint code
run: yarn lint
- name: Type check (strict project references)
run: npx tsc -b
- name: Build production app
run: yarn build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: Flowboard-Project-Management-System
path: dist
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: dist