Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
apply settings on deployment (#231)
Browse files Browse the repository at this point in the history
* deploy settings

* test trigger

* apply settings test

* remove test branch
  • Loading branch information
Borja García authored Feb 5, 2021
1 parent cc111f0 commit ba748cd
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/regular_appservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,24 @@ jobs:
dotnet build --configuration Release
dotnet publish -c Release -o publish
# - uses: azure/appservice-settings@v1
# with:
# app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }}
# app-settings-json: '${{ secrets.WEBAPP_APP_SETTINGS }}'
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_2 }}

- uses: azure/appservice-settings@v1
with:
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }}
app-settings-json: '${{ secrets.WEBAPP_APP_SETTINGS }}'


- name: Run Azure webapp deploy action
uses: azure/webapps-deploy@v2
with:
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: Source/Tailwind.Traders.Web/publish
package: Source/Tailwind.Traders.Web/publish

- name: Azure logout
run: |
az logout

0 comments on commit ba748cd

Please sign in to comment.