Step 3: Deploying the ABP Application to Azure Web App Service
Deploying the ABP Application to Azure Web App Service using GitHub Actions
Create a new GitHub repository for your project if you don't have one.
Push your project to the new GitHub repository.
Navigate to the Actions tab of your GitHub repository.
Click the set up a workflow yourself button.
Copy this content to the opened file and commit it.
Navigate to the Settings tab of your GitHub repository.
Click the Secrets button.
Click the New repository secret button.
Add the following secrets:
CONNECTION_STRING: The connection string of your database.
Example of Azure SQL connection string:
AZUREAPPSERVICE_PUBLISHPROFILE: The publish the profile of your Azure Web App Service. You can download it from the Overview tab of your Azure Web App Service.
AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS: The API token of your Azure Static Web App. You can get it from the Overview tab of your Azure Static Web App.
Navigate to the Actions tab of your GitHub repository.
Click the Deploy to Azure Web App workflow.
Click the Run workflow button.
Navigate to the web app URL to see the deployed application.
If deploying your application was unsuccessful, you can check the logs of the deployment by clicking the Deploy to Azure Web App workflow and then clicking the deploy-to-webapp job.
If deployment is successful, but you get an error when you navigate to the web app url, you can check the logs of the web app by clicking the Logs button on the Overview tab of your Azure Web App Service.
Finally, you have the CI/CD pipeline for your application. Every time you push your code to the main branch, your application will be deployed to Azure Web App Service automatically.