@@ -100,40 +100,41 @@ jobs:
100100 . signtool.exe sign /f certificate\certificate.pfx /p '${{ secrets.CODE_SIGN_PASSWORD }}' /t http://timestamp.comodoca.com/authenticode "$env:bin_path\\$env:configuration\\$env:binary_file"
101101 . signtool.exe sign /f certificate\certificate.pfx /p '${{ secrets.CODE_SIGN_PASSWORD }}' /t http://timestamp.comodoca.com/authenticode "$env:bin_path\\$env:configuration45\\$env:binary_file"
102102
103+ - name : Bump version and push tag
104+ id : tag_version
105+ uses : mathieudutour/github-tag-action@v5.6
106+ if : ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
107+ with :
108+ github_token : " ${{ secrets.GITHUB_TOKEN }}"
103109
104110 - name : Generate The Setup Script
105111 shell : powershell
112+ if : ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
106113 run : |
107114 .\.github\workflows\generate_setup_script.ps1 `
108115 -dacpacPath "$env:bin_path\\$env:configuration\\$env:dacpac_file" `
109116 -binaryPath "$env:bin_path\\$env:configuration\\$env:binary_file" `
110117 -pfxPath "${{ github.workspace }}\\certificate\certificate.pfx" `
111118 -databaseName "$env:database_name" `
112- -releasePath "${{ github.workspace }}\\$($env:REPO_NAME).zip"
119+ -releasePath "${{ github.workspace }}\\$($env:REPO_NAME).${{ steps.tag_version.outputs.new_tag }}. zip"
113120
114121 .\.github\workflows\generate_setup_script.ps1 `
115122 -dacpacPath "$env:bin_path\\$env:configuration45\\$env:dacpac_file" `
116123 -binaryPath "$env:bin_path\\$env:configuration45\\$env:binary_file" `
117124 -pfxPath "${{ github.workspace }}\\certificate\certificate.pfx" `
118125 -databaseName "$env:database_name" `
119- -releasePath "${{ github.workspace }}\\$($env:REPO_NAME).zip"
126+ -releasePath "${{ github.workspace }}\\$($env:REPO_NAME).${{ steps.tag_version.outputs.new_tag }}. zip"
120127
121128 # Remove the pfx
122129 - name : Remove the pfx
123130 shell : powershell
124131 run : Get-ChildItem -Path "certificate\" -File | Remove-Item -Force -Verbose
125132
126- - name : Bump version and push tag
127- id : tag_version
128- uses : mathieudutour/github-tag-action@v5.6
129- if : ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
130- with :
131- github_token : " ${{ secrets.GITHUB_TOKEN }}"
132133
133134 - name : Create Release
134135 uses : ncipollo/release-action@v1
135136 if : ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
136137 with :
137- artifacts : " ${{ github.workspace }}\\ ${{ env.REPO_NAME }}.zip"
138+ artifacts : " ${{ github.workspace }}\\ ${{ env.REPO_NAME }}.${{ steps.tag_version.outputs.new_tag }}. zip"
138139 token : " ${{ secrets.GITHUB_TOKEN }}"
139140 tag : " ${{ steps.tag_version.outputs.new_tag }}"
0 commit comments