@@ -216,20 +216,25 @@ jobs:
216216 cp octolint_linux_amd64_azure.zip octolint_azure.${{ steps.determine_version.outputs.semVer }}.zip
217217 working-directory: functions
218218 # Create azure version for macOS (amd64 and arm64)
219- - run : go build -ldflags="-X 'entry.Version=${{ steps.determine_version.outputs.semVer }}'" -o octolint_macos_amd64_azure cmd/azure/octolint.go
219+ - run : go build -ldflags="-X 'entry.Version=${{ steps.determine_version.outputs.semVer }}'" -o functions/ octolint_macos_amd64_azure cmd/azure/octolint.go
220220 env :
221221 GOOS : darwin
222222 GOARCH : amd64
223223 CGO_ENABLED : 0
224- - run : go build -ldflags="-X 'entry.Version=${{ steps.determine_version.outputs.semVer }}'" -o octolint_macos_arm64_azure cmd/azure/octolint.go
224+ - run : go build -ldflags="-X 'entry.Version=${{ steps.determine_version.outputs.semVer }}'" -o functions/ octolint_macos_arm64_azure cmd/azure/octolint.go
225225 env :
226226 GOOS : darwin
227227 GOARCH : arm64
228- CGO_ENABLED : 0
228+ CGO_ENABLED : 0
229+ - run : go build -ldflags="-X 'entry.Version=${{ steps.determine_version.outputs.semVer }}'" -o functions/octolint_windows_amd64_azure.exe cmd/azure/octolint.go
230+ env :
231+ GOOS : windows
232+ GOARCH : amd64
233+ CGO_ENABLED : 0
229234 # Create macOS azure version zips
230235 - run : |
231- zip -r octolint_macos_arm64_azure.zip . -x local.settings.json -x octolint_linux_amd64_azure -x octolint_linux_amd64_azure.zip
232- zip -r octolint_macos_amd64_azure.zip . -x local.settings.json -x octolint_linux_amd64_azure -x octolint_linux_amd64_azure.zip -x octolint_macos_arm64_azure -x octolint_macos_arm64_azure.zip
236+ zip -r octolint_macos_arm64_azure.zip . -x local.settings.json -x octolint_linux_amd64_azure -x octolint_linux_amd64_azure.zip -x octolint_windows_amd64_azure.exe
237+ zip -r octolint_macos_amd64_azure.zip . -x local.settings.json -x octolint_linux_amd64_azure -x octolint_linux_amd64_azure.zip -x octolint_windows_amd64_azure.exe -x octolint_macos_arm64_azure -x octolint_macos_arm64_azure.zip
233238 working-directory: functions
234239 - id : create_release
235240 uses : " marvinpinto/action-automatic-releases@latest"
@@ -292,7 +297,16 @@ jobs:
292297 upload_url : ${{ steps.create_release.outputs.upload_url }}
293298 asset_path : functions/octolint_macos_arm64_azure.zip
294299 asset_name : octolint_macos_arm64_azure.zip
295- asset_content_type : application/octet-stream
300+ asset_content_type : application/octet-stream
301+ - name : Upload windows amd64 Azure Functions Release Asset
302+ uses : actions/upload-release-asset@v1
303+ env :
304+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
305+ with :
306+ upload_url : ${{ steps.create_release.outputs.upload_url }}
307+ asset_path : functions/octolint_windows_amd64_azure.exe
308+ asset_name : octolint_windows_amd64_azure.exe
309+ asset_content_type : application/octet-stream
296310 - name : Push packages to Octopus Deploy
297311 if : ${{ steps.branch-name.outputs.current_branch == 'main' }}
298312 uses : OctopusDeploy/push-package-action@v3
0 commit comments