Skip to content

Commit

Permalink
Create build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Justus-D committed Jan 26, 2024
1 parent 80a03ed commit b7eb615
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"

- name: Build with Maven
run: mvn clean package

release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: "target/*.jar"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release Information
run: echo "Release ${{ steps.create_release.outputs.upload_url }}"

0 comments on commit b7eb615

Please sign in to comment.