Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to Azure WebApp

on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Prepare artifact
run: |
zip -r release.zip . \
-x ".git/*" ".github/*" "tests/*" "__pycache__/*" "*.pyc"

- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v3
with:
app-name: InviktaChatDemo # nombre exacto del App Service
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: release.zip
32 changes: 0 additions & 32 deletions .github/workflows/docker-image-publish.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/python-app.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/sample-app-github-cd.yml

This file was deleted.

Loading