refactor(input): replace sharphook with native win event #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WPF Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
permissions: | |
contents: write | |
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: Archive Release | |
uses: thedoctor0/[email protected] | |
with: | |
type: zip | |
path: './${{ env.Wpf_Project_Directory }}/bin/Release/' | |
filename: release.zip | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: release.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |