Skip to content

Commit

Permalink
don't validate version number from CSPROJ
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Dec 13, 2023
1 parent fc1bbb4 commit de32716
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/GenerateRelease-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ jobs:
- name: Build VolumeControl Binary
run: dotnet publish VolumeControl -c Release -p:PublishProfile="VolumeControl/Properties/PublishProfiles/FolderProfile.pubxml"

- name: Validate Product Version Number
run: |
$ExeVersion = $(Get-Item publish/VolumeControl.exe).VersionInfo.ProductVersion
$CsprojVersion = $(.\.github\workflows\scripts\SetProperty.ps1 VolumeControl/VolumeControl.csproj Version -Quiet)
if ($ExeVersion -ne $CsprojVersion) { echo "The executable's product version ($ExeVersion) differs from the one in the CSPROJ file ($CsprojVersion)!" ; exit 1 }
- name: Stage Binary (Portable Version)
run: foreach($file in $((dir "publish" | where {$_.extension -in ".exe"}).Fullname)){ mv "$file" "STAGING" }

Expand Down Expand Up @@ -87,12 +81,6 @@ jobs:
- name: Build VolumeControl Binary
run: dotnet publish VolumeControl -c Release-ForInstaller -p:PublishProfile="VolumeControl/Properties/PublishProfiles/PublishForInstaller.pubxml"

- name: Validate Product Version Number
run: |
$ExeVersion = $(Get-Item publish/installer/VolumeControl.exe).VersionInfo.ProductVersion
$CsprojVersion = $(.\.github\workflows\scripts\SetProperty.ps1 VolumeControl/VolumeControl.csproj Version -Quiet)
if ($ExeVersion -ne $CsprojVersion) { echo "The executable's product version ($ExeVersion) differs from the one in the CSPROJ file ($CsprojVersion)!" ; exit 1 }
- name: Compile VolumeControl Installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
Expand Down

0 comments on commit de32716

Please sign in to comment.