Bump org.apache.maven.plugins:maven-shade-plugin from 3.4.1 to 3.5.1 #13
Workflow file for this run
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Create Build | |
if: "startsWith(github.event.head_commit.message, '[Release]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'corretto' | |
cache: maven | |
- name: Build | |
run: mvn clean package | |
- name: Get Maven version | |
run: | | |
VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec) | |
echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
- name: Upload Artifact | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: ${{ github.workspace }}/target/*.jar | |
draft: false | |
name: Release v${{ env.VERSION }} | |
tag: ${{ env.VERSION }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
body: "The artifacts are kept up to date with the branch release." | |
commit: ${{ github.sha }} | |
allowUpdates: true | |
removeArtifacts: true | |
replacesArtifacts: true |