Skip to content

Commit ea8c6d5

Browse files
committed
attempt to fix error in action #4
1 parent 12555db commit ea8c6d5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/publush.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333

3434
- name: Get version and build executable
3535
run: |
36-
$version = $(git describe --tags --abbrev=0)
37-
if (-not $version) { $version = "0.0.0" }
38-
dotnet-warp publish --output GateSwitchWay-$version.exe
36+
$version = $(git describe --tags --abbrev=0) -or "0.0.0"
37+
dotnet-warp --input publish --output GateSwitchWay-$version.exe
38+
shell: pwsh
39+
env:
40+
DOTNET_ROOT: C:\Program Files\dotnet
3941

4042
- name: Upload Published Artifacts
4143
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)