-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.18 KB
/
Copy pathpull-request.yml
File metadata and controls
57 lines (51 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test / MQTT Plugin
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- edited
- ready_for_review
branches:
- master
jobs:
build:
name: MQTT Plugin / Build
runs-on: windows-2022
steps:
- name: Git Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Nuget
run: |
nuget restore
shell: cmd
- name: Build
run: |
build_git.bat < nul
working-directory: ${{ github.workspace }}\scripts
shell: cmd
- name: Upload Artifact / Plugin
uses: actions/upload-artifact@v7
if: ${{ success() }}
with:
name: MQTTPlugin
path: |
${{ github.workspace }}\MQTTPlugin\bin\Release\MQTTPlugin.dll
retention-days: 7
if-no-files-found: error
ci-status:
name: Build Status
runs-on: ubuntu-latest
needs:
- build
if: always()
steps:
- name: Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1