Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2b950b

Browse files
committed
fix CI
1 parent 96b5474 commit b2b950b

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ jobs:
8585

8686
- name: Copy pfx To Root
8787
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
88-
run: copy .\Credentials\*.pfx .
88+
run: |
89+
copy .\Credentials\*.pfx .
90+
dir *.pfx -s
8991
9092
- name: Build Release & Package 7z
9193
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}

packaging/build.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ $ErrorActionPreference = 'Stop'
44
Write-Host 'dotnet SDK info'
55
dotnet --info
66

7-
$publishtool_tfm = 'net6.0'
8-
$output_dir = "..\src\ST.Client.Desktop.Avalonia.App\bin\$configuration\Publish"
9-
$proj_path = "..\src\ST.Client.Desktop.Avalonia.App\ST.Client.Avalonia.App.csproj"
7+
$RootPath = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
8+
$output_dir = "$RootPath\src\ST.Client.Desktop.Avalonia.App\bin\$configuration\Publish"
9+
$proj_path = "$RootPath\src\ST.Client.Desktop.Avalonia.App\ST.Client.Avalonia.App.csproj"
1010

11-
$publishtool_dir = "..\src\ST.Tools.Publish"
11+
$publishtool_dir = "$RootPath\src\ST.Tools.Publish"
1212
$publishtool_exe = "$publishtool_dir\bin\$configuration\$publishtool_tfm\p.exe"
1313

14-
$build_pubxml_dir = "..\src\ST.Client.Desktop.Avalonia.App\Properties\PublishProfiles"
14+
$build_pubxml_dir = "$RootPath\src\ST.Client.Desktop.Avalonia.App\Properties\PublishProfiles"
1515

1616
$build_pubxml_winx64_fd = "fd-win-x64.pubxml"
1717
$build_pubxml_winx64 = "win-x64.pubxml"
@@ -21,7 +21,7 @@ $build_pubxml_linuxarm64 = "linux-arm64.pubxml"
2121

2222
function Build-PublishTool
2323
{
24-
dotnet build -c Release -f $publishtool_tfm $publishtool_dir\ST.Tools.Publish.csproj
24+
dotnet build -c Release $publishtool_dir\ST.Tools.Publish.csproj
2525

2626
if ($LASTEXITCODE) { exit $LASTEXITCODE }
2727

@@ -78,7 +78,7 @@ function Build-App
7878

7979
if([String]::IsNullOrEmpty($env:Token) -Or [String]::IsNullOrEmpty($version))
8080
{
81-
Write-Host "Undefined Token Or Version: $env:Token & $version"
81+
Write-Host "Undefined Token Or Version: $version"
8282
exit -1
8383
}
8484

0 commit comments

Comments
 (0)