Commit caf103480b

caf103480bdb1612f84b6a13b5d1a31bc50ed67f

parent: 53d134f66f

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-26 18:35 UTC

Fix: Pls work

Layout: unified · split

.github/workflows/ci-cd.yml +9 −8
@@ -86,18 +86,19 @@ jobs:
86 Remove-Item "is.exe" 86 Remove-Item "is.exe"
87 87
88 - name: List Build Directory 88 - name: List Build Directory
89 run: dir 89 run: tree /F
90 90
91 - name: Bump Version 91 - name: Bump Version
92 id: bump_version 92 id: bump_version
93 run: | 93 run: |
94 current_version=$(cat VERSION.txt) 94 $current_version = Get-Content VERSION.txt
95 # Increment the patch version 95 $version_parts = $current_version -split '\.'
96 IFS='.' read -r major minor patch <<< "$current_version" 96 $major = $version_parts[0]
97 new_patch=$((patch + 1)) 97 $minor = $version_parts[1]
98 new_version="$major.$minor.$new_patch" 98 $patch = [int]$version_parts[2] + 1
99 echo "$new_version" > VERSION.txt 99 $new_version = "$major.$minor.$patch"
100 echo "New version: $new_version" 100 $new_version | Set-Content VERSION.txt
101 Write-Host "New version: $new_version"
101 git config user.name "GitHub Actions" 102 git config user.name "GitHub Actions"
102 git config user.email "actions@github.com" 103 git config user.email "actions@github.com"
103 git add VERSION.txt 104 git add VERSION.txt
VERSION.txt added +1
@@ -0,0 +1 @@
10.0.3\ No newline at end of file