Skip to content

possible advancement achievemen #release #167

possible advancement achievemen #release

possible advancement achievemen #release #167

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
tags:
- "v*.*.*"
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
if: ${{ contains(github.event.head_commit.message, '#release') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
fetch-depth: 0
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: '8.6'
- name: Build with Gradle
run: gradle release
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Create a GitHub release
# uses: ncipollo/release-action@v1
# with:
# tag: ${{ steps.tag_version.outputs.new_tag }}
# name: Release ${{ steps.tag_version.outputs.new_tag }}
# body: ${{ steps.tag_version.outputs.changelog }}
- name: Releases
uses: softprops/action-gh-release@v1
with:
files: |
build/release/MinecraftStatsCLI.zip
build/release/MinecraftStatsWeb.zip
tag_name: ${{ steps.tag_version.outputs.new_tag }}