-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 2.12 KB
/
VET_vetcoindev.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: VET_vetcoindev-20210114142456
on:
workflow_dispatch:
#push:
# branches:
# - master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Start Notification
uses: zio3/discord-post@v1.0.0
with:
message: "BuildStart ${{github.repository }}"
webhookUrl: "https://discord.com/api/webhooks/748770034414780517/XUuH-jj4Q0ayeOvzGCVdeOsfbz4VKaStzhVVa3rXE3_NIiFaVkhTgUudD8wf3eDRaP7X"
embedUrl: "https://github.com/zio3/VetCoin/actions?query=workflow%3AVET_vetcoindev-20210114142456"
embedTitle: "GithubActions"
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Build Error Notification
if: failure()
uses: zio3/discord-post@v1.0.0
with:
webhookUrl: "https://discord.com/api/webhooks/748770034414780517/XUuH-jj4Q0ayeOvzGCVdeOsfbz4VKaStzhVVa3rXE3_NIiFaVkhTgUudD8wf3eDRaP7X"
message: "Build Error ${{github.repository }}"
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Deploy Start Notification
uses: zio3/discord-post@v1.0.0
with:
webhookUrl: "https://discord.com/api/webhooks/748770034414780517/XUuH-jj4Q0ayeOvzGCVdeOsfbz4VKaStzhVVa3rXE3_NIiFaVkhTgUudD8wf3eDRaP7X"
message: "Deploy Start ${{github.repository }}"
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'vetcoindev'
slot-name: 'production'
publish-profile: ${{ secrets.VET_VETCOINDEV }}
package: ${{env.DOTNET_ROOT}}/myapp
- name: Actions Complite Notification
uses: zio3/discord-post@v1.0.0
with:
webhookUrl: "https://discord.com/api/webhooks/748770034414780517/XUuH-jj4Q0ayeOvzGCVdeOsfbz4VKaStzhVVa3rXE3_NIiFaVkhTgUudD8wf3eDRaP7X"
message: "Actions Complite ${{github.repository }}"