feat: add CI and release workflows for automated builds and deployments #1
This file contains hidden or 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: 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 |