v2.1.3 #10
Workflow file for this run
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 And Publish Jar | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| distribution: 'temurin' | |
| architecture: x64 | |
| - name: Build and test project with Maven | |
| run: mvn -B package --file pom.xml | |
| publish-job: | |
| runs-on: ubuntu-latest | |
| needs: [build_and_test] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| java-version: 11 | |
| distribution: 'temurin' | |
| architecture: x64 | |
| - run: mvn -B package --file pom.xml -DskipTests | |
| - run: mkdir staging && cp target/*jar-with-dependencies.jar staging | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Package | |
| path: staging |