release-on-milestone-closed.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: "Automatic Releases"
  2. on:
  3. milestone:
  4. types:
  5. - "closed"
  6. jobs:
  7. release:
  8. name: "Git tag, release & create merge-up PR"
  9. runs-on: "ubuntu-20.04"
  10. steps:
  11. - name: "Checkout"
  12. uses: "actions/checkout@v2"
  13. - name: "Release"
  14. uses: "laminas/automatic-releases@v1"
  15. with:
  16. command-name: "laminas:automatic-releases:release"
  17. env:
  18. "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
  19. "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
  20. "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
  21. "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
  22. - name: "Create Merge-Up Pull Request"
  23. uses: "laminas/automatic-releases@v1"
  24. with:
  25. command-name: "laminas:automatic-releases:create-merge-up-pull-request"
  26. env:
  27. "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
  28. "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
  29. "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
  30. "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
  31. - name: "Create and/or Switch to new Release Branch"
  32. uses: "laminas/automatic-releases@v1"
  33. with:
  34. command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
  35. env:
  36. "GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
  37. "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
  38. "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
  39. "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
  40. - name: "Create new milestones"
  41. uses: "laminas/automatic-releases@v1"
  42. with:
  43. command-name: "laminas:automatic-releases:create-milestones"
  44. env:
  45. "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
  46. "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
  47. "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
  48. "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}