Skip to content

Commit

Permalink
Update main_mango-entertainment-api.yml
Browse files Browse the repository at this point in the history
Another try at getting this deployed.
  • Loading branch information
ssmodish authored Jul 26, 2024
1 parent ab1c689 commit 06e8f9e
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/main_mango-entertainment-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
WORKING_DIRECTORY: ./base-api

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest

steps:
Expand All @@ -35,37 +35,17 @@ jobs:
run: dotnet publish -c Release -o ${{github.workspace}}/publish
working-directory: ${{ env.WORKING_DIRECTORY }}

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{github.workspace}}/publish

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@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
package: .
package: ${{github.workspace}}/publish

- name: logout
run: |
az logout
- name: Azure CLI logout
run: az logout
if: always()

0 comments on commit 06e8f9e

Please sign in to comment.