Skip to content

Bump the maven-build-plugins group with 2 updates #129

Bump the maven-build-plugins group with 2 updates

Bump the maven-build-plugins group with 2 updates #129

# This workflow will build and deploy a Java project with Maven
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# https://github.com/marketplace/actions/action-maven-publish
name: Build and deploy releases to GitHub
on:
push:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '19'
cache: 'maven'
- name: Build with Maven
run: mvn -B compile --file pom.xml
release:
name: Draft a Release on GitHub Releases
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
:construction: Work in Progress
draft: true
prerelease: false