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