diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 342d456..96c1f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on tag on: + workflow_dispatch: push: tags: - '*' @@ -36,7 +37,8 @@ jobs: id: version run: | # Extract mod and minecraft version from tag - mod_version=${GITHUB_REF_NAME//@(*v|+*)} + mod_version=${GITHUB_REF_NAME#v} + mod_version="${mod_version%+*}" minecraft_version=${GITHUB_REF_NAME#*+} echo "mod=$mod_version" >> $GITHUB_OUTPUT echo "minecraft=$minecraft_version" >> $GITHUB_OUTPUT @@ -51,14 +53,18 @@ jobs: - name: Parse changelog id: changelog + continue-on-error: true run: | # Extract the changelog entry for this release mkdir -p output changelog=output/changelog.md - parse-changelog CHANGELOG.md ${{ steps.version.outputs.full }} > $changelog + parse-changelog CHANGELOG.md ${{ steps.version.outputs.full }} > $changelog || true if [[ ! -s $changelog ]]; then # No changelog for specific version (mod+minecraft), try just mod version - parse-changelog CHANGELOG.md ${{ steps.version.outputs.mod }} > $changelog + parse-changelog CHANGELOG.md ${{ steps.version.outputs.mod }} > $changelog || true + fi + if [[ ! -s $changelog ]]; then + echo "No changelog available" > $changelog fi echo Extracted changelog for this release: cat $changelog diff --git a/CHANGELOG.md b/CHANGELOG.md index 2147220..c8bdbaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.1.0+1.19.4 - 2024-04-20 + +### Added + +- Support for Minecraft 1.19.4 + ## 1.1.0+1.19.3 - 2023-03-16 ### Added