gh-actions: bump softprops/action-gh-release from 2.0.5 to 2.0.8 (#165) #113
This file contains 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: | |
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 |