Add Twitter announcement to publish workflow

This commit is contained in:
Franck Nijhof 2021-01-18 23:38:09 +01:00
parent 2905ce0bea
commit 99a5aa44f3
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -23,7 +23,8 @@ jobs:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1.8.3
- name: 📢 Announce on Discord server
uses: sarisia/actions-status-discord@v1.8.3
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nodetail: true
@ -39,3 +40,16 @@ jobs:
**Version**: `${{ github.event.client_payload.version }}`
**Release notes**:
<https://github.com/${{ github.event.client_payload.repository }}/releases/tag/${{ github.event.client_payload.version }}>
- name: 📢 Announce on Twitter
uses: devigned/go-twitter-action@v1.0.2
with:
apiKey: ${{ secrets.TWITTER_API_KEY }}
apiKeySecret: ${{ secrets.TWITTER_API_SECRET }}
accessToken: ${{ secrets.TWITTER_ACCESS_TOKEN }}
accessTokenSecret: ${{ secrets.TWITTER_ACCESS_SECRET }}
message: |
⬆️ ${{ github.event.client_payload.name }} ${{ github.event.client_payload.version }}
Release notes:
https://github.com/${{ github.event.client_payload.repository }}/releases/tag/${{ github.event.client_payload.version }}