Merge pull request #33 from Zastai/dependabot/github_actions/actions/… #54
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: Build | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| pull_request: | |
| branches: [ 'main' ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| java-version: 17 | |
| steps: | |
| - name: Check out the project | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK ${{env.java-version}} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{env.java-version}} | |
| distribution: temurin | |
| cache: maven | |
| - name: Run Build | |
| run: mvn -B package | |
| - name: Get Jars | |
| run: mkdir staging && cp target/*.jar staging | |
| - name: Make Jars Available | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Jar Files | |
| path: staging |