Skip to content

gh-actions: bump softprops/action-gh-release from 2.0.4 to 2.0.5 (#156) #109

gh-actions: bump softprops/action-gh-release from 2.0.4 to 2.0.5 (#156)

gh-actions: bump softprops/action-gh-release from 2.0.4 to 2.0.5 (#156) #109

name: Create Release
on:
push:
branches:
- master
jobs:
create-release:
if: "startsWith(github.event.head_commit.message, 'v')"
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
java-package: jdk # optional (jdk or jre) - defaults to jdk
cache: 'maven'
- name: Build with Maven
run: mvn clean install
- name: Create Prerelease
if: ${{contains(github.event.head_commit.message, '-SNAPSHOT')}}
id: create_prerelease
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ChatEx ${{ github.event.head_commit.message }}
tag_name: ${{ github.event.head_commit.message }}
files: target/ChatEx.jar
generate_release_notes: true
prerelease: true
- name: Create Release
if: ${{!contains(github.event.head_commit.message, '-SNAPSHOT')}}
id: create_release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ChatEx ${{ github.event.head_commit.message }}
tag_name: ${{ github.event.head_commit.message }}
files: target/ChatEx.jar
generate_release_notes: true