Create maven.yml

This commit is contained in:
potzplitz 2024-03-02 23:25:35 +01:00 committed by GitHub
parent 64caa09bea
commit c517f99fe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
.github/workflows/maven.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Java CI mit Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build mit Maven
run: mvn -B package --file pom.xml
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Erstellen eines Releases
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false