Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai authored Mar 11, 2024
1 parent d74fe5e commit da4f09d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
dotnet-version: '8.0.x'
- name: Clean
run: dotnet clean $env:GITHUB_WORKSPACE\EvernoteToNotionChrome.sln --configuration Release && dotnet nuget locals all --clear
run: dotnet clean $env:GITHUB_WORKSPACE\HTMLToNotion\HTMLToNotion.csproj --configuration Release && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand All @@ -28,11 +28,11 @@ jobs:
run: dotnet publish -c Release --runtime win-x64 --self-contained=true
- 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\HTMLToDocX\bin\Release\net8.0-windows\win-x64\publish\HTMLToDocX.exe
- run: powershell .\DotNetDllPathPatcherCMD\publish\DotNetDllPathPatcherCMD.exe $env:GITHUB_WORKSPACE\HTMLToDocX\bin\Release\net8.0-windows\win-x64\publish\HTMLToNotion.exe
- name: Compress
run: powershell Compress-Archive -Path $env:GITHUB_WORKSPACE\HTMLToDocX\bin\Release\net8.0-windows\win-x64\publish -DestinationPath .\HTMLToDocX.zip
run: powershell Compress-Archive -Path $env:GITHUB_WORKSPACE\HTMLToNotion\bin\Release\net8.0-windows\win-x64\publish -DestinationPath .\HTMLToNotion.zip
- name: Create a Release
uses: ncipollo/release-action@v1
with:
artifacts: "HTMLToDocX.zip"
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "HTMLToNotion.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit da4f09d

Please sign in to comment.