Skip to content

Commit

Permalink
Bump version to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ustc-zzzz committed Aug 1, 2024
1 parent 69a0afd commit 8ece3d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
shell: bash
env:
CURRENT: ${{ github.ref }}
ARTIFACT_GIT_TAG: ${{ steps.maven_publish.outputs.artifact_git_tag }}
# Special thanks to this post on Stack Overflow regarding change set between two tags:
# https://stackoverflow.com/questions/12082981
# Do note that actions/checkout will enter detach mode by default, so you won't have
Expand All @@ -42,6 +43,7 @@ jobs:
# See https://stackoverflow.com/questions/36927089/
run: |
current_tag=${CURRENT/refs\/tags\//}
test "$current_tag" = "$ARTIFACT_GIT_TAG"
last_tag=`git describe --tags --abbrev=0 "$current_tag"^ 2>/dev/null || echo`
if [ last_tag ]; then
changelog=`git log --pretty="format:%H: %s" ${last_tag}..$current_tag`
Expand All @@ -50,7 +52,7 @@ jobs:
fi
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/' %0A'}"
echo "::set-output name=value::Change set since ${last_tag:-the beginning}: %0A%0A$changelog"
echo "value=Change set since ${last_tag:-the beginning}: %0A%0A$changelog" | tee "$GITHUB_OUTPUT"
- name: GitHub Release
id: create_release
uses: actions/create-release@v1.1.1
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ abstract class TeaConDumpPathToGitHub extends DefaultTask {
outputFile << newLine << "artifact_name=${theFile.getName()}"
outputFile << newLine << "artifact_publish_name=${publishName.get()}"
outputFile << newLine << "artifact_path=${theFile.absolutePath}"
outputFile << newLine << "artifact_git_tag=MC${minecraft_version}-${mod_version}"
}
}
}
Expand Down

0 comments on commit 8ece3d1

Please sign in to comment.