Add workflow for building plugins #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Check failure on line 47 in .github/workflows/plugin-ci.yml GitHub Actions / maven CIInvalid workflow file
|
||
- name: Archive generated JAR file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ plugin }}-compiled-jars | ||
path: plugins/${{ plugin }}/target/*.jar |