-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.39 KB
/
CD.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
name: CD
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore Nuget packages
run: nuget restore FritzSmartHome.sln
- name: Build the Solution
run: msbuild FritzSmartHome.sln /p:Configuration=Release
- name: Create plugin with destributiontool
run: ${{ github.workspace }}\\FritzSmartHome\Distribution\DistributionTool.exe -b -i ${{ github.workspace }}\\FritzSmartHome\bin\Release\com.linariii.fritzsmarthome.sdPlugin -o ${{ github.workspace }}
shell: cmd
- name: release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./com.linariii.fritzsmarthome.streamDeckPlugin
asset_name: com.linariii.fritzsmarthome.streamDeckPlugin
asset_content_type: application/zip