-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 1 KB
/
deploy-printer-app.yml
File metadata and controls
39 lines (31 loc) · 1 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
name: "Deploy PrinterApp x86"
on:
push:
tags:
- "v*"
env:
PROJECT_PATH: PrinterApp/PrinterApp.csproj
jobs:
build_release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- run: dotnet restore ${{ env.PROJECT_PATH }}
- run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x86 -p:PublishSingleFile=true -p:PlatformTarget=x86 --no-restore
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: "zip"
directory: "PrinterApp/bin/Release/net8.0-windows/win-x86/publish/"
filename: "PrinterApp_x86.zip"
exclusions: "*.pdb"
- name: GH Release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
files: "PrinterApp/bin/Release/net8.0-windows/win-x86/publish/PrinterApp_x86.zip"