Releaser.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. name: Releaser
  2. run-name: ${{ github.actor }} is creating ${{vars.PRODUCT_NAME}} release ${{inputs.new_version}}
  3. on:
  4. workflow_dispatch:
  5. inputs:
  6. new_version:
  7. description: |
  8. New Version:
  9. Examples:
  10. 20.4.0-rc1, 20.4.0-rc2, 20.4.0, 20.4.1
  11. certified-20.4-cert1-rc1, certified-20.4-cert1
  12. required: true
  13. type: string
  14. is_security:
  15. description: |
  16. Security?
  17. (No prev RCs)
  18. required: true
  19. type: boolean
  20. default: false
  21. advisories:
  22. description: |
  23. Comma separated list of advisories.
  24. NO SPACES
  25. Example: GHSA-4xjp-22g4-9fxm,GHSA-4xjp-22g4-zzzz
  26. required: false
  27. type: string
  28. is_hotfix:
  29. description: |
  30. Hotfix?
  31. (A patch release but not security. No prev RCs)
  32. required: true
  33. type: boolean
  34. default: false
  35. force_cherry_pick:
  36. description: |
  37. Force cherry-pick for non-RC1 releases? USE WITH CAUTION!
  38. required: true
  39. type: boolean
  40. default: false
  41. push_release_branches:
  42. description: |
  43. Push release branches live?
  44. required: true
  45. type: boolean
  46. default: false
  47. create_github_release:
  48. description: |
  49. Create the GitHub release?
  50. required: true
  51. type: boolean
  52. default: false
  53. push_tarballs:
  54. description: |
  55. Push tarballs to downloads server?
  56. required: true
  57. type: boolean
  58. default: false
  59. send_email:
  60. description: |
  61. Send announcement emails?
  62. required: true
  63. type: boolean
  64. default: false
  65. jobs:
  66. ReleaseAsterisk:
  67. runs-on: ubuntu-latest
  68. steps:
  69. - name: Run Releaser
  70. uses: asterisk/asterisk-ci-actions/ReleaserComposite@main
  71. with:
  72. product: ${{vars.PRODUCT_NAME}}
  73. is_security: ${{inputs.is_security}}
  74. advisories: ${{inputs.advisories}}
  75. is_hotfix: ${{inputs.is_hotfix}}
  76. new_version: ${{inputs.new_version}}
  77. force_cherry_pick: ${{inputs.force_cherry_pick}}
  78. push_release_branches: ${{inputs.push_release_branches}}
  79. create_github_release: ${{inputs.create_github_release}}
  80. push_tarballs: ${{inputs.push_tarballs}}
  81. send_email: ${{inputs.send_email}}
  82. repo: ${{github.repository}}
  83. mail_list_ga: ${{vars.MAIL_LIST_GA}}
  84. mail_list_rc: ${{vars.MAIL_LIST_RC}}
  85. mail_list_cert_ga: ${{vars.MAIL_LIST_CERT_GA}}
  86. mail_list_cert_rc: ${{vars.MAIL_LIST_CERT_RC}}
  87. mail_list_sec: ${{vars.MAIL_LIST_SEC_ADV}}
  88. sec_adv_url_base: ${{vars.SEC_ADV_URL_BASE}}
  89. gpg_private_key: ${{secrets.ASTDEV_GPG_PRIV_KEY}}
  90. github_token: ${{secrets.GITHUB_TOKEN}}
  91. asteriskteam_gh_token: ${{secrets.ASTERISKTEAM_PAT}}
  92. application_id: ${{secrets.ASTERISK_ORG_ACCESS_APP_ID}}
  93. application_private_key: ${{secrets.ASTERISK_ORG_ACCESS_APP_PRIV_KEY}}
  94. asteriskteamsa_username: ${{secrets.ASTERISKTEAMSA_GMAIL_ACCT}}
  95. asteriskteamsa_token: ${{secrets.ASTERISKTEAMSA_GMAIL_TOKEN}}
  96. deploy_ssh_priv_key: ${{secrets.DOWNLOADS_DEPLOY_SSH_PRIV_KEY}}
  97. deploy_ssh_username: ${{secrets.DOWNLOADS_DEPLOY_SSH_USERNAME}}
  98. deploy_host: ${{vars.DEPLOY_HOST}}
  99. deploy_dir: ${{vars.DEPLOY_DIR}}
  100. fpbx_issue_repo: ${{vars.FPBX_ISSUE_REPO}}