Bump version to v1.1.0 for release #1
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: Release Package | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| release: | |
| name: Build and Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| cache: gradle | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Build distributable jar | |
| run: ./gradlew --no-daemon clean build | |
| - name: Resolve artifact path | |
| run: | | |
| DIST_JAR="$(find build/libs -maxdepth 1 -type f -name '*.jar' ! -name '*-sources.jar' ! -name '*-javadoc.jar' | sort | head -n 1)" | |
| if [ -z "$DIST_JAR" ]; then | |
| echo "No distributable jar found in build/libs" >&2 | |
| exit 1 | |
| fi | |
| echo "DIST_JAR=$DIST_JAR" >> "$GITHUB_ENV" | |
| - name: Upload distributable | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: ${{ env.DIST_JAR }} | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: AIlex ${{ github.ref_name }} | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| files: ${{ env.DIST_JAR }} |