Skip to content

Commit

Permalink
modify: Automatically generate release note with changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed May 30, 2024
1 parent a24f6e0 commit f3f575e
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/actions/release-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
sbt "release with-defaults"
- name: "Export Current Version"
id: export-current-version
shell: bash
run: |
git describe --tags --abbrev=0
Expand Down
15 changes: 15 additions & 0 deletions .github/actions/upload-to-github-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ runs:
run: |
./scripts/packageBundles.sh
- name: "Extract Changelog of Current Version"
id: extract-changelog
uses: sean0x42/markdown-extract@v2
with:
file: CHANGELOG.md
pattern: ${{ env.CURRENT_VERSION }}

- name: "Prepare Release Note"
shell: bash
run: |
echo "# Change Log" >> ./doc/RELEASE.md
echo "${{ steps.extract-changelog.outputs.markdown }}" >> ./doc/RELEASE.md
echo "# Installation" >> ./doc/RELEASE.md
cat doc/INSTALL.md >> ./doc/RELEASE.md
- name: "Create GitHub Release Page"
uses: xresloader/upload-to-github-release@v1.6.0
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
branches: ["release"]
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -51,5 +51,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ project/target
.DS_Store
.bsp/
.attach*
doc/RELEASE.md
16 changes: 6 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[Unreleased]
-------------
## [Unreleased]

### Fixed

Expand All @@ -20,23 +19,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use Debian as a building environment in GitHub Actions CI pipeline.
- Enable AudioOutputTest in GitHub Actions CI pipeline.

2.0.2
-----
## v2.0.2

### Fixed

- Fixed some Live2D model will yield `IndexOutOfBoundException: Required 1 remaining elements in buffer, only had 0` when using JavaOpenGLBinding to render the Live2D model. (Issue [#3](https://github.com/brianhsu/Live2DForScala/issues/3))
- Fixed Java Swing Example yield `java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds` and crash during startup if there is no webcam.

2.0.1
-------------
## v2.0.1

### Fixed

- Fixed `FileNotFound` exception when use pre-built Maven JAR files and loading avatar through AvatarFileReader. (Issue [#2](https://github.com/brianhsu/Live2DForScala/issues/2)).

2.0.0
-------------
## v2.0.0

This version basically aligned to Cubism Native SDK 4-r.5-beta.4.

### Added
Expand Down Expand Up @@ -67,8 +64,7 @@ This version basically aligned to Cubism Native SDK 4-r.5-beta.4.
- Move Parameter / JVMParameter / CPointerParameter to separate package `moe.brianhsu.live2d.enitiy.model.parameter`.


1.0.0
-------------
## v1.0.0

### Added

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sbt:live2dforscala> compile
sbt:live2dforscala>
```

### 3. Compile
### 3. Unit Test

- Type `test` in SBT console to run unit test.
- Since MacOS does not support SWT+JWJGL, SWTOpenGLCanvasInfoFeature would faild. It's expected.
Expand Down Expand Up @@ -256,6 +256,18 @@ sbt:live2dforscala> exampleSWTLinux/run
[info] running (fork) moe.brianhsu.live2d.demo.swing.SwingMain
```

Contribution
==============================

If you find any bugs, you could report it under the [GitHub Issue](https://github.com/brianhsu/Live2DForScala/issues) tab.

You are more then welcome to send pull request to this project. Here are some guidelines for pull requests:

1. `master` branch are reserved for release a new version, please base your code on `develop` branch. `devlope` branch contains all the latest code.
2. Please send pull request to `develop` branch.
3. Large pull request is hard to do a meaningful review, please consider [split large PR to small PR](https://google.github.io/eng-practices/review/developer/small-cls.html).
4. Please run unit test and make sure everything passed before sending a PR.

License
==============================

Expand Down

0 comments on commit f3f575e

Please sign in to comment.