diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d2fe2243..053227f9 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -152,13 +152,25 @@ jobs: run: | [System.Text.Encoding]::UTF8.GetBytes($env:SECRET) | Set-Content -Path metadata.json -AsByteStream env: - SECRET : ${{ secrets.AZURETRUSTEDSIGNFILE }} + SECRET: ${{ secrets.AZURETRUSTEDSIGNFILE }} + + - name: Write CHANGELOG.md + working-directory: src/KubeUI.Desktop + shell: pwsh + run: | + if([string]::IsNullOrEmpty($env:CHANGELOG)){ + "N/A" | Out-File -FilePath CHANGELOG.md + } else { + $env:CHANGELOG | Out-File -FilePath CHANGELOG.md + } + env: + CHANGELOG: ${{ needs.semantic-release.outputs.new_release_notes }} - name: Create Release working-directory: src/KubeUI.Desktop run: | vpk download github --repoUrl https://github.com/${{ github.repository }} --token ${{ secrets.GITHUB_TOKEN }} -c ${{ matrix.rid }} --pre - vpk pack --packTitle KubeUI -u KubeUI -v ${{ needs.semantic-release.outputs.new_release_version }} -p bin/publish -c ${{ matrix.rid }} -e ${{ matrix.fileName }} -o packed ${{ matrix.packParam }} --packAuthors "Ivan Josipovic" + vpk pack --packTitle KubeUI -u KubeUI -v ${{ needs.semantic-release.outputs.new_release_version }} -p bin/publish -c ${{ matrix.rid }} -e ${{ matrix.fileName }} -o packed ${{ matrix.packParam }} --packAuthors "Ivan Josipovic" --releaseNotes CHANGELOG.md - name: Remove unnecessary assets working-directory: src/KubeUI.Desktop