announce-lts-rc.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. name: Announce LTS RCs
  2. on:
  3. release:
  4. types: [prereleased]
  5. jobs:
  6. post:
  7. runs-on: ubuntu-latest
  8. if: ${{ github.repository_owner == 'jenkinsci' }}
  9. steps:
  10. - name: Post on Discourse
  11. uses: roots/discourse-topic-github-release-action@557d74ea05b6cc0c47f555c1d5d28a89d904005b # v1.1.0
  12. with:
  13. discourse-api-key: ${{ secrets.DISCOURSE_RELEASES_API_KEY }}
  14. discourse-base-url: https://community.jenkins.io/
  15. discourse-author-username: jenkins-release-bot
  16. discourse-category: 23
  17. - name: Post on mailing list
  18. uses: dawidd6/action-send-mail@67ce3558d613188179559c61d3565140cf389968 # v22
  19. with:
  20. server_address: smtp.gmail.com
  21. server_port: 465
  22. username: ${{secrets.MAIL_USERNAME}}
  23. password: ${{secrets.MAIL_PASSWORD}}
  24. secure: true
  25. subject: ${{ github.event.release.tag_name }} has been released
  26. to: jenkinsci-dev@googlegroups.com
  27. from: "Jenkins Release Bot <jenkins-release-bot@community.jenkins.io>"
  28. html_body: ${{ github.event.release.body }}
  29. convert_markdown: true