Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: PR Verify

# These are the veriables which you could use in your workflows
env:
AZURE_WEBAPP_NAME: app-dev-rajsonawala # set this to the name of your Azure Web App
AZURE_WEBAPP_NAME_DEV: app-dev-rajsonawala # set this to the name of your Azure Web App
AZURE_WEBAPP_NAME_PROD: app-prod-rajsonawala
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '8.0' # set this to the .NET Core version to use

Expand Down Expand Up @@ -65,7 +66,34 @@ jobs:
- name: 'Deploy to Azure App Service'
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
app-name: ${{ env.AZURE_WEBAPP_NAME_DEV }} # Replace with your app name
package: artifacts/

deploy_prod:
name: Deploy Prod
runs-on: ubuntu-latest
needs: build # wait for other job to finish g
environment: prod

steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENATE_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}


- uses: actions/download-artifact@v4
with:
name: my-artifact
path: artifacts/

# Deploy to Azure Web apps
- name: 'Deploy to Azure App Service'
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME_PROD }} # Replace with your app name
package: artifacts/


Expand Down
Loading