From 6a305882cedb46ae3b7a90ddc49709df75b9ff9f Mon Sep 17 00:00:00 2001 From: kavyashan <134146463+kavyashan@users.noreply.github.com> Date: Sat, 20 May 2023 22:04:52 +0530 Subject: [PATCH 1/2] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_mytasklister.yml | 60 +++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/main_mytasklister.yml diff --git a/.github/workflows/main_mytasklister.yml b/.github/workflows/main_mytasklister.yml new file mode 100644 index 000000000..aabd07502 --- /dev/null +++ b/.github/workflows/main_mytasklister.yml @@ -0,0 +1,60 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy PHP app to Azure Web App - Mytasklister + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + + - name: Check if composer.json exists + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: 'composer.json' + + - name: Run composer install if composer.json exists + if: steps.check_files.outputs.files_exists == 'true' + run: composer validate --no-check-publish && composer install --prefer-dist --no-progress + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: php-app + path: . + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: php-app + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'Mytasklister' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_1669A8B49C6340FB90E8BF23F2E7DA9A }} + package: . From 19df7ea47f249c7f858254a4088b70b2e25e8d2b Mon Sep 17 00:00:00 2001 From: kavyashan <134146463+kavyashan@users.noreply.github.com> Date: Fri, 4 Jul 2025 15:29:05 +0530 Subject: [PATCH 2/2] Update README.md making change on read me instruction mesg --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 188f2ffeb..240e25944 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ --- +general instructions to the visitors languages: - php page_type: sample @@ -22,4 +23,4 @@ See [LICENSE](LICENSE). ## Contributing This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. - \ No newline at end of file +