2023-10-25 18:45:10 +08:00
|
|
|
name: 🐦 Release to Tweet
|
|
|
|
|
|
|
|
on:
|
2023-11-22 10:14:11 +08:00
|
|
|
create
|
2023-10-25 18:45:10 +08:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tweet:
|
2023-11-22 10:14:11 +08:00
|
|
|
if: github.event.ref_type == 'tag'
|
2023-10-25 18:45:10 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Tweet
|
|
|
|
uses: nearform-actions/github-action-notify-twitter@v1
|
|
|
|
with:
|
|
|
|
message: |
|
|
|
|
Ant Design (antd@${{ github.event.release.tag_name }}) has been released ~ 🎊🎊🎊 Check out the release notes: ${{ github.event.release.html_url }}
|
|
|
|
twitter-app-key: ${{ secrets.TWITTER_API_KEY }}
|
|
|
|
twitter-app-secret: ${{ secrets.TWITTER_API_SECRET_KEY }}
|
|
|
|
twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
|
|
|
twitter-access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
|