Merge pull request #1563 from WildMeOrg/1562_annotation_deletion_fix #328
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: Maven build and package for main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'releases/**' | |
| tags: | |
| - 'v**' | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| name: Maven build and deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 8* | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Build with Maven | |
| run: | | |
| mvn dependency:resolve -B -U | |
| mvn clean install -DskipTests -Dmaven.javadoc.skip=true -B | |
| mvn -B package --file pom.xml | |
| - name: Publish to GitHub Packages | |
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | |
| run: mvn -B deploy | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |