diff --git a/.github/workflows/main_vets-ai-bthnchcjenfbbfbb.yml b/.github/workflows/main_vets-ai-bthnchcjenfbbfbb.yml index e0cdd68..ac828e9 100644 --- a/.github/workflows/main_vets-ai-bthnchcjenfbbfbb.yml +++ b/.github/workflows/main_vets-ai-bthnchcjenfbbfbb.yml @@ -1,7 +1,3 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions -# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions - name: Build and deploy Python app to Azure Web App - vets-ai-bthnchcjenfbbfbb on: @@ -46,11 +42,6 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - permissions: - id-token: write #This is required for requesting the JWT steps: - name: Download artifact from build job @@ -61,7 +52,9 @@ jobs: - name: Unzip artifact for deployment run: unzip release.zip - + # Use either Login to Azure with a Service Principal or a Publish Profile below: + + # Option 1: Login to Azure with Service Principal - name: Login to Azure uses: azure/login@v2 with: @@ -69,10 +62,17 @@ jobs: tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C72663B1D57841BCA0661A1AA7305062 }} subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_E92F13266520462ABA4F2DE624F99935 }} + # Option 2: Use Publish Profile for simpler auth + # - name: 'Deploy to Azure Web App' + # uses: azure/webapps-deploy@v3 + # with: + # app-name: 'vets-ai' + # publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + # slot-name: 'Production' + - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 id: deploy-to-webapp with: - app-name: 'ASP-streamlitapp-9931' + app-name: 'vets-ai' # Corrected name slot-name: 'Production' -