-
-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (31 loc) · 955 Bytes
/
build-release-windows.yml
File metadata and controls
34 lines (31 loc) · 955 Bytes
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
name: 'build windows'
on:
workflow_call:
inputs:
version:
description: 'The version for the manual flow'
required: false
type: string
jobs:
build_windows:
name: Build Windows App
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: setup .Net 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build Windows App
run: |
cd CutCode.CrossPlatform
dotnet publish -c Release -f net6.0 -r win7-x64
- name: Archive Artifact
run: |
cd CutCode.CrossPlatform/bin/Release/net6.0/win7-x64
powershell Compress-Archive -Path .\publish -DestinationPath CutCodeWindows.zip
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: WindowsBuild.zip
path: ./CutCode.CrossPlatform/bin/Release/net6.0/win7-x64/CutCodeWindows.zip