Skip to content

Commit

Permalink
Merge pull request #25 from eduardo-paes/development
Browse files Browse the repository at this point in the history
chore(ci): Update WebAPI script
  • Loading branch information
Eduardo Paes authored Oct 24, 2023
2 parents 0f1cf49 + 5521717 commit 302b6e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/azure-functions-app-dotnet.yml.stop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# name: Deploy DotNet project to Azure Function App
# name: Deploy WebFunctions to Azure

# on:
# push:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/azure-webapps-dotnet-core.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build and deploy ASP.Net Core app to an Azure Web App
name: Deploy WebAPI to Azure

env:
AZURE_WEBAPP_NAME: GPIC-Stg-WebAPI
AZURE_WEBAPP_NAME: ${{ env.AZURE_WEBAPP_NAME }}
AZURE_WEBAPP_PACKAGE_PATH: "."
DOTNET_VERSION: "7.0"
PROJECT_PATH: "src/Infrastructure/WebAPI/WebAPI.csproj"
WEBAPI_PATH: "src/Infrastructure/WebAPI/"
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_ENVIRONMENT: ${{ env.ASPNETCORE_ENVIRONMENT }}

on:
push:
Expand Down Expand Up @@ -49,7 +49,8 @@ jobs:
SEQ_API_KEY=${{ secrets.SEQ_API_KEY }}
SEQ_URL=${{ secrets.SEQ_URL }}
SMTP_EMAIL_PASSWORD=${{ secrets.SMTP_EMAIL_PASSWORD }}
SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }}" > src/Infrastructure/WebAPI/.env
SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }}
EXECUTE_MIGRATION=${{ secrets.EXECUTE_MIGRATION }}" > src/Infrastructure/WebAPI/.env
- name: Set environment variable
run: echo "ASPNETCORE_ENVIRONMENT=${{ env.ASPNETCORE_ENVIRONMENT }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 302b6e3

Please sign in to comment.