5757 commit_count_mod=$((commit_count % 65535))
5858 NEW_VERSION="$VERSION.$commit_count_mod"
5959 echo "Final version: $NEW_VERSION"
60- echo "newversion =$NEW_VERSION" >> $GITHUB_OUTPUT
61- echo "version =$VERSION" >> $GITHUB_OUTPUT
60+ echo "MsiVersion =$NEW_VERSION" >> $GITHUB_OUTPUT
61+ echo "NextSemVer =$VERSION" >> $GITHUB_OUTPUT
6262
6363 # Step 3: Build all project artifacts for the stable release
6464 - name : Build project
8585 # Build MSI package with STABLE flag
8686 echo "### Create WAU msi ###"
8787 cd .\Sources\Wix\
88- wix build -src build.wxs -ext WixToolset.Util.wixext -ext WixToolset.UI.wixext -out ..\..\WAU.msi -arch x64 -d Version=${{ steps.release_version.outputs.newversion }} -d NextSemVer=${{ steps.release_version.outputs.newversion }} -d Comment="STABLE" -d PreRelease=0
88+ wix build -src build.wxs -ext WixToolset.Util.wixext -ext WixToolset.UI.wixext -out ..\..\WAU.msi -arch x64 -d Version=${{ steps.release_version.outputs.MsiVersion }} -d NextSemVer=${{ steps.release_version.outputs.NextSemVer }} -d Comment="STABLE" -d PreRelease=0
8989 cd ..\..
9090 Get-Item .\WAU.msi
9191
@@ -114,19 +114,19 @@ jobs:
114114 - name : Create release
115115 uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0
116116 with :
117- tag : v${{ steps.release_version.outputs.version }}
117+ tag : v${{ steps.release_version.outputs.NextSemVer }}
118118 prerelease : false # This is a stable release
119119 generateReleaseNotes : true
120- name : WAU ${{ steps.release_version.outputs.version }}
120+ name : WAU ${{ steps.release_version.outputs.NextSemVer }}
121121 artifacts : " WAU.msi,WAU_ADMX.zip,WAU_InstallCounter"
122122 body : |
123123 ## Files
124124 |Files|Hash (SHA256)|Downloads|
125125 |---|---|---|
126- |[WAU.msi](https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v${{ steps.release_version.outputs.version }}/WAU.msi) (x64)|`${{ steps.build_project.outputs.msi_sha }}`|<picture></picture>|
127- |[WAU_ADMX.zip](https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v${{ steps.release_version.outputs.version }}/WAU_ADMX.zip)|`${{ steps.build_project.outputs.admx_sha }}`|<picture></picture>|
126+ |[WAU.msi](https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v${{ steps.release_version.outputs.NextSemVer }}/WAU.msi) (x64)|`${{ steps.build_project.outputs.msi_sha }}`|<picture></picture>|
127+ |[WAU_ADMX.zip](https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v${{ steps.release_version.outputs.NextSemVer }}/WAU_ADMX.zip)|`${{ steps.build_project.outputs.admx_sha }}`|<picture></picture>|
128128
129- <picture></picture>
129+ <picture></picture>
130130
131131 # Step 5: Configure Git for merge back to develop
132132 - name : Configure Git
@@ -144,7 +144,7 @@ jobs:
144144 git pull origin develop
145145
146146 # Merge main into develop with no fast-forward to preserve history
147- git merge --no-ff origin/main -m "Merge main into develop after the creation of release v${{ steps.release_version.outputs.version }}"
147+ git merge --no-ff origin/main -m "Merge main into develop after the creation of release v${{ steps.release_version.outputs.NextSemVer }}"
148148
149149 # Push changes to develop branch
150150 git push origin develop
0 commit comments