Skip to content

Commit

Permalink
chore: pack changelog.md (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic authored Jan 29, 2025
1 parent 272c7a3 commit 3944f7c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3944f7c

Please sign in to comment.