Skip to content

Commit 32fd5b9

Browse files
committed
update cd github workflow
1 parent cd5cc0b commit 32fd5b9

2 files changed

Lines changed: 35 additions & 46 deletions

File tree

.github/workflows/azure-static-web-apps-ashy-field-0dcd26f03.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CD Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
cd:
10+
environment:
11+
name: Production
12+
url: https://quickmock.net
13+
runs-on: ubuntu-latest
14+
name: Deploy Quickmock
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Install
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Deploy
26+
uses: Azure/static-web-apps-deploy@v1
27+
with:
28+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FIELD_0DCD26F03 }}
29+
repo_token: ${{ secrets.GITHUB_TOKEN }}
30+
action: "upload"
31+
app_location: "/dist"
32+
skip_app_build: true
33+
skip_api_build: true
34+
env:
35+
NODE_VERSION: 20.17.0

0 commit comments

Comments
 (0)