Skip to content

Changed the target runtime to .NET 8 (#65) #40

Changed the target runtime to .NET 8 (#65)

Changed the target runtime to .NET 8 (#65) #40

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-windows7.0/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-windows7.0/win-x86/publish/PrinterApp_x86.zip"