Skip to content

优化主列表菜单,支持多选批量删除等操作 #43

优化主列表菜单,支持多选批量删除等操作

优化主列表菜单,支持多选批量删除等操作 #43

Workflow file for this run

name: .NET Core Desktop
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
name: Dotnet Build
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Echo tag
run: echo The tag is ${{ github.event.inputs.tag }}
- name: Clean
run: dotnet clean $env:GITHUB_WORKSPACE\WkyFast.sln --configuration Release && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Set Version
run: powershell -Command "(gc $env:GITHUB_WORKSPACE\WkyFast\Utils\ActionVersion.cs) -replace '{VERSION}', '$env:GITHUB_REF_NAME' | Out-File $env:GITHUB_WORKSPACE\WkyFast\Utils\ActionVersion.cs"
- name: Set Build
run: powershell -Command "(gc $env:GITHUB_WORKSPACE\WkyFast\Utils\ActionVersion.cs) -replace '{BUILD}', '$env:GITHUB_RUN_NUMBER' | Out-File $env:GITHUB_WORKSPACE\WkyFast\Utils\ActionVersion.cs"
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release -r win-x64
- run: powershell curl https://github.com/aiqinxuancai/DotNetDllPathPatcherWPF/releases/download/v0.0.15/DotNetDllPathPatcherCMD.zip -o DotNetDllPathPatcherCMD.zip
- run: powershell Expand-Archive -Path .\DotNetDllPathPatcherCMD.zip -DestinationPath .\DotNetDllPathPatcherCMD
- run: powershell .\DotNetDllPathPatcherCMD\publish\DotNetDllPathPatcherCMD.exe $env:GITHUB_WORKSPACE\WkyFast\bin\Release\net7.0-windows\win-x64\publish\WkyFast.exe
- name: Compress
run: powershell Compress-Archive -Path $env:GITHUB_WORKSPACE\WkyFast\bin\Release\net7.0-windows\win-x64\publish -DestinationPath .\WkyFast.zip
- name: Create a Release
uses: ncipollo/release-action@v1
with:
artifacts: "WkyFast.zip"
token: ${{ secrets.GITHUB_TOKEN }}