-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.21 KB
/
Release.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
name: CI
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: nuget/setup-nuget@v1
- name: Build Windows Desktop
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\.NET\Examples\WindowsDesktop\WindowsDesktop_VS2019.sln -p:Configuration=Release
rm $Env:GITHUB_WORKSPACE\.NET\Examples\WindowsDesktop\obj -r -fo
- name: zip libraries
run: |
cd "$Env:GITHUB_WORKSPACE\.NET\Libraries\"
7z a -tzip -mx=9 $Env:GITHUB_WORKSPACE\FanucSDK.zip *
- name: zip full .NET\Examples
run: 7z a -tzip -mx=9 $Env:GITHUB_WORKSPACE\FanucSDK_Full.zip $Env:GITHUB_WORKSPACE\.NET\Examples $Env:GITHUB_WORKSPACE\.NET\Libraries
- name: zip desktop example
run: |
cd "$Env:GITHUB_WORKSPACE\.NET\Examples\WindowsDesktop\bin\Release\"
7z a -tzip -mx=9 $Env:GITHUB_WORKSPACE\FanucSDK_DesktopExample.zip *
- uses: ncipollo/release-action@v1
with:
artifacts: "FanucSDK_Full.zip,FanucSDK_DesktopExample.zip,FanucSDK.zip"
bodyFile: "whatsNew.md"
token: ${{ secrets.GITHUB_TOKEN }}