diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c0e154..886b6bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,20 +137,29 @@ jobs: name: goup-${{ matrix.target }}.msi path: target/wix/goup-${{ matrix.target }}.msi - # Create GitHub release with Rust build targets and release notes - upload_artifacts: - name: Add Build Artifacts to Release - needs: [github_build] - runs-on: ubuntu-latest - steps: - - name: Generate a changelog + - name: Generate a changelog [Changelog] uses: orhun/git-cliff-action@v2 + if: matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' with: config: cliff.toml args: --latest env: - OUTPUT: ${{ github.workspace }}-CHANGELOG.txt + OUTPUT: CHANGELOG.md + - name: Upload changelog artifacts [Changelog] + continue-on-error: true + if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc' + uses: actions/upload-artifact@v4 + with: + name: CHANGELOG.md + path: CHANGELOG.md + + # Create GitHub release with Rust build targets and release notes + upload_artifacts: + name: Add Build Artifacts to Release + needs: [github_build] + runs-on: ubuntu-latest + steps: - name: Setup | Artifacts uses: actions/download-artifact@v4 @@ -160,5 +169,5 @@ jobs: - name: Build | Add Artifacts to Release uses: softprops/action-gh-release@v1 with: - body_path: ${{ github.workspace }}-CHANGELOG.txt + body_path: CHANGELOG.md files: goup-*/goup-* \ No newline at end of file