Skip to content

feat: cleanup flyout showing soft-deleted items before purge #46

feat: cleanup flyout showing soft-deleted items before purge

feat: cleanup flyout showing soft-deleted items before purge #46

Workflow file for this run

name: Deploy to Azure
on:
push:
branches: [main]
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build frontend
run: |
cd client
npm ci
npm run build
- name: Copy frontend to wwwroot
run: |
mkdir -p src/CleanSweep.API/wwwroot
cp -r client/dist/* src/CleanSweep.API/wwwroot/
- name: Publish backend
run: dotnet publish src/CleanSweep.API -c Release -o publish --nologo
- name: Create deployment zip
run: cd publish && zip -r -q ../deploy.zip .
- name: Login to Azure
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to Azure App Service
run: az webapp deploy --name cleansweep-app --resource-group rg-cleansweep --src-path deploy.zip --type zip --async true