Skip to content

feat: add CI and release workflows for automated builds and deployments #1

feat: add CI and release workflows for automated builds and deployments

feat: add CI and release workflows for automated builds and deployments #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Temurin JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Verify with Maven
run: mvn -B -ntp verify
- name: Upload plugin artifact
if: success()
uses: actions/upload-artifact@v4
with:
name: DynamicKeepInv-${{ github.sha }}
path: target/DynamicKeepInv-*.jar
if-no-files-found: error
- name: Upload test reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: surefire-reports-${{ github.sha }}
path: |
target/surefire-reports/**
target/*.log
if-no-files-found: ignore