Skip to content

updated the workflows and included a sample web-app to check the mana… #1

updated the workflows and included a sample web-app to check the mana…

updated the workflows and included a sample web-app to check the mana… #1

Workflow file for this run

on:
workflow_dispatch:

Check failure on line 3 in .github/workflows/deploy-webapp.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-webapp.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
permissions:
id-token: write
contents: read
env:
AZURE_WEBAPP_NAME: mlflow-appservice # set this to your web application's name
AZURE_WEBAPP_PACKAGE_PATH: 'src/web/myapp' # set this to the path to your web app project, defaults to the repository root
jobs:
build:
environment:
name: 'prod'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install -r src/web/myapp/requirements.txt
- name: Deploy App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: logout
run: |
az logout