Skip to content

Commit

Permalink
fix: fix release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Jan 30, 2024
1 parent 97889d9 commit 8176d0e
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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-*

0 comments on commit 8176d0e

Please sign in to comment.