-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (28 loc) · 1.04 KB
/
buildaritifact.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
name: Build Artifact
on:
push:
branches: [ master]
pull_request:
branches: [ master]
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build Project win-x64
run: dotnet publish -r win-x64 -p:PublishSingleFile=true /p:DebugType=None --self-contained true -c Release -o out/win-x64
#- name: Build Project win-x86
# run: dotnet publish -r win-x86 -p:PublishSingleFile=true /p:DebugType=None --self-contained true -c Release -o out/win-x86
- name: Upload Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: fragment-shortcut-overlay-release.zip # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: ${{github.workspace}}/out/win-x64