-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.21 KB
/
Copy pathdeploy.yml
File metadata and controls
36 lines (33 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will deploy the application to staging when the development branch is updated.
name: Deploy Production
on:
push:
branches:
- production
jobs:
deploy-package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.207
- run: dotnet restore RPThreadTrackerV3.BackEnd.TumblrClient.sln --verbosity m
- run: dotnet publish RPThreadTrackerV3.BackEnd.TumblrClient/RPThreadTrackerV3.BackEnd.TumblrClient.csproj -c Release
- uses: azure/webapps-deploy@v2
with:
app-name: "RPThreadTrackerV3-TumblrClient"
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
notify:
name: Discord Notification
runs-on: ubuntu-latest
needs: # make sure the notification is sent AFTER the jobs you want included have completed
- deploy-package
if: ${{ always() }} # You always want to be notified: success, failure, or cancelled
steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}