-
Notifications
You must be signed in to change notification settings - Fork 48
38 lines (30 loc) · 968 Bytes
/
dotnet.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
name: .NET
on:
push:
branches: [ "v7" ]
pull_request:
branches: [ "v7" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build & Release
run: dotnet build --configuration Release -o Output
- name: NutGet Upload
if: success() && contains(github.event.head_commit.message, 'publish')
working-directory: Output
run: dotnet nuget push *.nupkg -k ${{ secrets.MAGIC }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Discord WebHook
if: always()
shell: pwsh
env:
GITHUB: ${{ toJson(github) }}
run: |
wget https://raw.githubusercontent.com/Yucked/Scripy/master/Powershell/ActionSend.ps1
pwsh .\ActionSend.ps1 ${{ secrets.WEBHOOK }} ${{ job.status }}