generated from atomicgo/template
-
-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (31 loc) Β· 1.82 KB
/
tweet-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# β β
# β IMPORTANT NOTE β
# β β
# β This file is synced with https://github.com/atomicgo/template β
# β β
# β Please apply all changes to the template repository β
# β β
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
name: Tweet release
# Listen to the `release` event
on:
release:
types: [published]
jobs:
tweet:
runs-on: ubuntu-latest
steps:
- uses: Eomm/why-don-t-you-tweet@v1
# We don't want to tweet if the repository is not a public one
if: ${{ !github.event.repository.private }}
with:
tweet-message:
"New ${{ github.event.repository.name }} release: ${{ github.event.release.tag_name }}! π
Try it out: atomicgo.dev/${{ github.event.repository.name }}
#go #golang #opensource #library #release #atomicgo"
env:
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}