Skip to content

Commit 7d1ecca

Browse files
Tweet on release! (#913)
1 parent 6fc3b50 commit 7d1ecca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ jobs:
3333
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
3434
nexus_username: ${{ secrets.OSSRH_USERNAME }}
3535
nexus_password: ${{ secrets.OSSRH_TOKEN }}
36+
- uses: Eomm/why-don-t-you-tweet@v1
37+
# We don't want to tweet if the repository is not a public one
38+
if: ${{ !github.event.repository.private }}
39+
with:
40+
# GitHub event payload
41+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
42+
tweet-message: "New ${{ github.event.repository.name }} release ${{ github.event.release.tag_name }}! Try it will it is HOT! ${{ github.event.release.html_url }} #release"
43+
env:
44+
# Get your tokens from https://developer.twitter.com/apps
45+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
46+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
47+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
48+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
49+
50+
3651

3752
# This is separate job because there were issues with git after release step, was not able to commit changes. See history.
3853
update-working-version:

0 commit comments

Comments
 (0)