Skip to content

Commit

Permalink
Add workflow for building plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed Jul 3, 2024
1 parent 3847aac commit 3dfbc2c
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/plugin-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: maven CI

on:

push:
branches:
- master
- develop
- 'feat/**'
paths:
- 'plugins/quartz-scheduler/**'
- '.github/workflows/plugin-ci.yml'

pull_request:
branches:
- develop
- 'feat/**'
paths:
- 'plugins/quartz-scheduler/**'
- '.github/workflows/plugin-ci.yml'


jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
plugin:
- quartz-scheduler

steps:

- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4

- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: maven
cache-dependency-path: pom.xml

- name: Build with Maven
run: mvn -B package --file plugins/${{ plugin }}/pom.xml

- name: Archive generated JAR file
uses: actions/upload-artifact@v4
with:
name: ${{ plugin }}-compiled-jars
path: plugins/${{ plugin }}/target/*.jar

0 comments on commit 3dfbc2c

Please sign in to comment.