Create Release #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Release | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| createRelease: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: set up JDK | |
| uses: actions/setup-java@v4.6.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Build | |
| run: ./gradlew assembleReleaseDist | |
| - name: Create info variables | |
| id: variables | |
| run: | | |
| gradleVersion="$(cat gradle.properties | sed -n 's/version=//p')" | |
| gitVersion="${GITHUB_REF#refs/*/}" | |
| if [ "$gradleVersion" != "$gitVersion" ]; then | |
| echo "gradle properties version ($gradleVersion) doesn't match git tag version ($gitVersion)" | |
| exit 1 | |
| fi | |
| echo "version=$gitVersion" >> $GITHUB_OUTPUT | |
| - name: Get Changelog | |
| id: changelog | |
| uses: mindsers/changelog-reader-action@v2.2.3 | |
| with: | |
| version: ${{ steps.variables.outputs.version }} | |
| validation_level: error | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: "${{ steps.changelog.outputs.changes }}" | |
| fail_on_unmatched_files: true | |
| files: | | |
| scripting-host/build/distributions/scripting-host-release*.tar.gz | |
| scripting-host/build/distributions/scripting-host-release*.zip | |
| draft: false | |
| prerelease: false |