-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.63 KB
/
dev.yml
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
48
49
50
51
52
53
54
55
56
name: Azure Deploy (dev)
on:
push:
branches:
- dev
jobs:
deploy-dev:
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: dev
url: https://dev.jimm.my
name: Build/Deploy (dev)
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
submodules: true
lfs: false
- name: Install Node
id: node
uses: actions/setup-node@v4
with:
node-version: 22
check-latest: true
- name: Install Dependencies
id: ci
run: npm ci
- name: Build SWA
id: build
run: npm run deploy
- name: Deploy to Azure
id: deploy
uses: Azure/static-web-apps-deploy@v1
with:
# https://aka.ms/swaworkflowconfig
azure_static_web_apps_api_token: ${{ secrets.AZ_SWA_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: upload
# ##### App Config ######
app_location: build # built app
api_location: "" # built api - optional
# ##### End of App Config ######
#
# ##### OVERRIDE Build ######
# Azure SWA workflow uses Microsoft Oryx to install Node and build SWA before deploy.
# Microsoft Oryx does not support Node 18+.
# Pre-build SWA by installing Node using actions/setup-node@v4 and manually running build script.
# Skip build action in Azure SWA (this) workflow.
skip_api_build: true
skip_app_build: true
is_static_export: true
# ##### End of OVERRIDE Build ######