Skip to content

Commit

Permalink
Update to run build action on all branches (#41)
Browse files Browse the repository at this point in the history
* Add build action on all branches

* Test if "if" statement works

* Fix if statement

* Update to only publish on main
  • Loading branch information
SChandarana authored Nov 18, 2020
1 parent 6080eaa commit 9fa9e0a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/continuous-test_softwire-discord-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

name: Build and deploy ASP.Net Core app to Azure Web App - softwire-discord-bot

on:
push:
branches:
- main
on: push

jobs:
build-and-deploy:
Expand All @@ -24,9 +21,11 @@ jobs:
run: dotnet build --configuration Release

- name: dotnet publish
if: ${{github.ref == 'refs/heads/main'}}
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp/app_data/Jobs/Continuous/DiscordBot

- name: Deploy to Azure Web App
if: ${{github.ref == 'refs/heads/main'}}
uses: azure/webapps-deploy@v2
with:
app-name: 'softwire-discord-bot'
Expand Down

0 comments on commit 9fa9e0a

Please sign in to comment.