forked from Team-Neptune/DeepSea
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (19 loc) · 831 Bytes
/
Copy pathtweet.yml
File metadata and controls
26 lines (19 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: tweet
on:
release:
types: [published]
workflow_dispatch:
jobs:
tweet:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9.10
- name: Install tweepy
run: |
pip3 install tweepy
- name: tweet
run: |
python -c "import tweepy as A;B=A.Client(bearer_token='${{ secrets.TWITTER_BEARER_TOKEN }}');B=A.Client(consumer_key='${{ secrets.TWITTER_CONSUMER_KEY }}',consumer_secret='${{ secrets.TWITTER_CONSUMER_SECRET }}',access_token='${{ secrets.TWITTER_ACCESS_TOKEN }}',access_token_secret='${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}');B.create_tweet(text='Hey! We\'ve got a new release out for DeepSea. Check it out here: https://github.com/Team-Neptune/DeepSea/releases/latest')"