From ef59bcb4656b1fc78db69856cac6fee4195c9259 Mon Sep 17 00:00:00 2001 From: abbablack Date: Tue, 22 Feb 2022 14:37:32 +0900 Subject: [PATCH 1/4] Create action.yml --- .github/workflows/action.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/action.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1 @@ + From 6e7939984f854a11ba28f681634d95bafb369c07 Mon Sep 17 00:00:00 2001 From: abbablack Date: Tue, 22 Feb 2022 14:39:35 +0900 Subject: [PATCH 2/4] Update action.yml --- .github/workflows/action.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8b1378917..b1622c3da 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1 +1,35 @@ +name: Python application +on: + [push] + +env: + AZURE_WEBAPP_NAME: user30webapp # set this to your application's name + AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - name: Set up Python 3.x + uses: actions/setup-python@v2 + with: + python-version: 3.x + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Deploy web App using GH Action azure/webapps-deploy + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} + - name: logout + run: | + az logout From 76b1f5ba9b40962ba0f1c85c3cf66d7c58906e4f Mon Sep 17 00:00:00 2001 From: abbablack Date: Tue, 22 Feb 2022 14:44:31 +0900 Subject: [PATCH 3/4] Update action.yml --- .github/workflows/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index b1622c3da..ea3220cfd 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -4,7 +4,7 @@ on: [push] env: - AZURE_WEBAPP_NAME: user30webapp # set this to your application's name + AZURE_WEBAPP_NAME: user04webapp # set this to your application's name AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root jobs: From 57a9d4a08e6bcf3dba0235b561503195a9b38672 Mon Sep 17 00:00:00 2001 From: abbablack Date: Tue, 22 Feb 2022 14:47:52 +0900 Subject: [PATCH 4/4] Update action.yml --- .github/workflows/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index ea3220cfd..78ea61413 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -4,7 +4,7 @@ on: [push] env: - AZURE_WEBAPP_NAME: user04webapp # set this to your application's name + AZURE_WEBAPP_NAME: user04webappdemo # set this to your application's name AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root jobs: