Skip to content

WPF Release

WPF Release #4

Workflow file for this run

name: WPF Release
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: Turnbind.sln
Wpf_Project_Directory: Turnbind/
Wpf_Project_Path: Turnbind/Turnbind.csproj
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=Release
env:
Configuration: ${{ matrix.configuration }}
- name: Create the app package
run: msbuild $env:Wpf_Project_Path /p:Configuration=Release
env:
Configuration: ${{ matrix.configuration }}
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD-HH-mm-ss
utcOffset: "+08:00"
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./${{ env.Wpf_Project_Directory }}/bin/Release/net8.0-windows/**/*
tag_name: v${{ steps.current-time.outputs.formattedTime }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}