continuous-integration-workflow.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Build and Deploy
  2. on:
  3. push:
  4. branches:
  5. - '**'
  6. schedule:
  7. - cron: '0 10 * * *' # Once per day at 10am UTC
  8. workflow_dispatch:
  9. jobs:
  10. build:
  11. name: Build
  12. uses: spring-io/spring-security-release-tools/.github/workflows/build.yml@v1
  13. strategy:
  14. matrix:
  15. os: [ubuntu-latest, windows-latest]
  16. jdk: [17]
  17. with:
  18. runs-on: ${{ matrix.os }}
  19. java-version: ${{ matrix.jdk }}
  20. distribution: temurin
  21. secrets: inherit
  22. test:
  23. name: Test Against Snapshots
  24. uses: spring-io/spring-security-release-tools/.github/workflows/test.yml@v1
  25. with:
  26. test-args: --refresh-dependencies --stacktrace -PforceMavenRepositories=snapshot -PspringFrameworkVersion=6.1.+ -PspringSecurityVersion=6.2.+
  27. secrets: inherit
  28. deploy-artifacts:
  29. name: Deploy Artifacts
  30. needs: [build, test]
  31. uses: spring-io/spring-security-release-tools/.github/workflows/deploy-artifacts.yml@v1
  32. with:
  33. should-deploy-artifacts: ${{ needs.build.outputs.should-deploy-artifacts }}
  34. secrets: inherit
  35. deploy-docs:
  36. name: Deploy Docs
  37. needs: [build, test]
  38. uses: spring-io/spring-security-release-tools/.github/workflows/deploy-docs.yml@v1
  39. with:
  40. should-deploy-docs: ${{ needs.build.outputs.should-deploy-artifacts }}
  41. secrets: inherit
  42. perform-release:
  43. name: Perform Release
  44. needs: [deploy-artifacts, deploy-docs]
  45. uses: spring-io/spring-security-release-tools/.github/workflows/perform-release.yml@v1
  46. with:
  47. should-perform-release: ${{ needs.deploy-artifacts.outputs.artifacts-deployed }}
  48. project-version: ${{ needs.deploy-artifacts.outputs.project-version }}
  49. milestone-repo-url: https://repo.spring.io/artifactory/milestone
  50. release-repo-url: https://repo1.maven.org/maven2
  51. artifact-path: org/springframework/security/spring-security-oauth2-authorization-server
  52. slack-announcing-id: spring-authorization-server-announcing
  53. secrets: inherit