Enhance auto-reply workflow for issues and PRs #10
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: ⚙️ Java CI Build | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: ☕ Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: 🧱 Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - name: 🧪 Run tests | |
| run: mvn test | |
| - name: 📦 Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mycmd-artifact | |
| path: target/*.jar |