Skip to content

Commit

Permalink
chore: changelog from the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamAryanpur committed Jan 11, 2025
1 parent 3469c3e commit ec69cb0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 33 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install git-cliff
run: cargo install git-cliff

- name: Generate changelog
run: git-cliff --config cliff.toml --unreleased --output CHANGELOG.md --tag ${{ github.ref_name }}

- name: Update release notes
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: -vv --latest --strip header
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
CHANGELOG=$(cat CHANGELOG.md)
gh release edit ${{ github.ref_name }} --notes "$CHANGELOG"
OUTPUT: CHANGES.md
GITHUB_REPO: ${{ github.repository }}

# use release body in the same job
- name: Upload the binary releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
body: ${{ steps.git-cliff.outputs.content }}

- name: Publish crates in the crates folder
env:
Expand Down
22 changes: 2 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,8 @@ edition = "2021"
description = "General-Purpose, Easy-to-use, Fast, and Portable graphics engine"
documentation = "https://aryanpurtech.github.io/BlueEngineDocs/"
repository = "https://github.com/AryanpurTech/BlueEngine"
keywords = [
"game-development",
"gamedev",
"engine",
"gui",
"3D",
"2D",
"graphics",
"rendering",
]
categories = [
"game-development",
"gamedev",
"engine",
"gui",
"3D",
"2D",
"graphics",
"rendering",
]
keywords = ["gamedev", "graphics", "3D", "2D", "rendering"]
categories = ["game-development", "gui", "graphics", "rendering"]
license = "Apache-2.0"
exclude = ["/examples", "/resources"]

Expand Down

0 comments on commit ec69cb0

Please sign in to comment.