Skip to content

minor fix

minor fix #3

name: Deploy to Azure Static Web Apps
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- name: Checkout repository content
uses: actions/checkout@v3 # Aggiornato a v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build the application
run: npm run build
- name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
app_location: "." # Percorso relativo senza slash iniziale
output_location: "dist" # Percorso relativo senza slash iniziale
deployment_environment: "production" # Specifica l'ambiente di distribuzione