26 lines
608 B
YAML
26 lines
608 B
YAML
name: Frontend CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build_and_deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
run: |
|
|
cd frontend
|
|
npm install
|
|
- name: Build
|
|
run: |
|
|
cd frontend
|
|
npm run build
|
|
- name: Deploy to Azure Static Web Apps
|
|
uses: azure/static-web-apps-deploy@v1
|
|
with:
|
|
app_location: "frontend"
|
|
api_location: ""
|
|
output_location: "dist"
|
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_SWA_TOKEN }} |