Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
Despliegue en Azure (Pruebas)
  • Loading branch information
adrianmahialoredo authored Mar 9, 2025
1 parent de257a0 commit a1ae755
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
name: Deploy to Azure Web App
name: Build and deploy to Azure

on:
push:
branches:
- master
branches: [ main ]

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

node-version: '20'
- name: Install dependencies
run: npm install

- name: Build app
run: npm run build

- name: Deploy to Azure Web App
uses: Azure/webapps-deploy@v2
- name: Build
run: npm run build
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: 'Wichat-UO289390' # Nombre de tu WebApp en Azure
app-name: 'Wichat-UO289390'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: '.' # El directorio donde está tu código (ajusta si es necesario)
package: ./build # La carpeta generada por npm run build

0 comments on commit a1ae755

Please sign in to comment.