Skip to content

Commit 03e7aac

Browse files
committed
ci: Add Azure Static Web Apps workflow file and update ESLint configuration
1 parent c5ecd81 commit 03e7aac

File tree

2 files changed

+43
-46
lines changed

2 files changed

+43
-46
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Build and deploy the frontend app to Azure Static Web Apps
2+
name: Frontend Build and Deploy
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build_and_deploy_job:
10+
if: github.ref == 'refs/heads/main'
11+
runs-on: ubuntu-latest
12+
name: Build and Deploy Job
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
with:
18+
submodules: true
19+
lfs: false
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20' # Specify your Node.js version
25+
26+
- name: Install dependencies
27+
run: yarn install
28+
working-directory: ./apps/frontend
29+
30+
- name: Build the app
31+
run: yarn build
32+
working-directory: ./apps/frontend
33+
34+
- name: Deploy to Azure Static Web Apps
35+
id: builddeploy
36+
uses: Azure/static-web-apps-deploy@v1
37+
with:
38+
action: "upload"
39+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_WAVE_0F9BACA10 }}
40+
repo_token: ${{ secrets.GITHUB_TOKEN }}
41+
api_location: "" # Azure location where your API is deployed
42+
app_location: "./apps/frontend" # Where the codebase is located
43+
output_location: ".next" # The directory where the build output is generated

.github/workflows/azure-static-web-apps-black-wave-0f9baca10.yml

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

0 commit comments

Comments
 (0)