Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci: create release
  • Loading branch information
dargmuesli committed Oct 23, 2023
commit 7542ff0408bac08603bb5a0ff99458cd79e73a56
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: CI

on: [pull_request, push]
on:
pull_request:
push:
branches:
- alpha
- beta
- master
- renovate/**

jobs:
prepare_jobs:
name: 'Prepare: job optimization'
name: "Prepare: job optimization"
runs-on: ubuntu-latest
outputs:
pr_found: ${{ steps.pr.outputs.pr_found }}
Expand All @@ -16,19 +23,20 @@ jobs:
filterOutClosed: true
sha: ${{ github.event.pull_request.head.sha }}
build:
name: Build
needs: prepare_jobs
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '21' ]
java: ["11", "21"]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: "adopt"
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
Expand All @@ -48,3 +56,8 @@ jobs:
./ci/before-deploy.sh
cp ./ci/.m2.settings.xml $HOME/.m2/settings.xml
mvn deploy -P release -DskipTests=true
- name: Create release
if: startsWith(github.ref, 'refs/tags/') && matrix.java == 11
run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}