You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

  1. name: Release CI
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build:
  8. name: Build and release
  9. runs-on: ubuntu-latest
  10. if: "!contains(github.event.head_commit.message, '[ci skip]')"
  11. steps:
  12. - name: Checkout sources
  13. uses: actions/checkout@v4
  14. with:
  15. # Disabling shallow clone is needed for correctly determing next release with semantic release
  16. fetch-depth: 0
  17. persist-credentials: false
  18. - name: Set up JDK
  19. uses: actions/setup-java@v4
  20. with:
  21. distribution: 'temurin'
  22. java-version: 17
  23. cache: 'maven'
  24. - name: Test
  25. run: mvn -B test
  26. - name: Semantic release
  27. id: semantic
  28. uses: cycjimmy/semantic-release-action@v4
  29. with:
  30. semantic_version: 23
  31. extra_plugins: |
  32. @semantic-release/changelog@6
  33. @terrestris/maven-semantic-release@2
  34. @semantic-release/git@10
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}