Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Csharp gui alt

Csharp gui alt #53

Workflow file for this run

name: .NET Core Desktop .EXE (CI)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
targetplatform: [x86, x64]
runs-on: windows-latest
env:
Project_File: FAFB-PowerShell-Tool\FAFB-PowerShell-Tool.csproj
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Avoid shallow clone so nbgv can do its work.
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
with:
vs-version: '[17.8)'
- name: Build
run: dotnet build $env:Project_File -c Release -f net6.0-windows -r win-${{ matrix.targetplatform }}
- name: Publish Artifact
run: dotnet publish -c Release -f net6.0-windows -r win-${{ matrix.targetplatform }} -o ./publish --self-contained -p:PublishSingleFile=tr
- name: Zip Artifact
uses: vimtor/[email protected]
with:
files: ./publish
dest: FAFB_PowerShell_${{ matrix.targetplatform }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: FAFB_PowerShell_${{ matrix.targetplatform }}
path: FAFB_PowerShell_${{ matrix.targetplatform }}.zip