-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (35 loc) · 926 Bytes
/
cd.yml
File metadata and controls
41 lines (35 loc) · 926 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
39
40
41
name: CD Workflow
on:
push:
branches:
- main
jobs:
cd:
environment:
name: Production
url: https://quickmock.net
runs-on: ubuntu-latest
name: Deploy Quickmock
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install
run: npm ci
- name: Build
run: node --run build
- name: Deploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FIELD_0DCD26F03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
app_location: 'apps/web/dist'
skip_app_build: true
skip_api_build: true
env:
NODE_VERSION: 24.14.1