diff options
author | kytwb <412895+kytwb@users.noreply.github.com> | 2021-12-09 05:07:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 05:07:23 +0100 |
commit | 3423e6e44c2fd747537fc41739d18ddb602e561e (patch) | |
tree | 79e8eea00fc015c2def42c1c08a537903b778f1d /.github/workflows | |
parent | 5.6.4-nightly.29 [skip ci] (diff) | |
download | ferdium-app-3423e6e44c2fd747537fc41739d18ddb602e561e.tar.gz ferdium-app-3423e6e44c2fd747537fc41739d18ddb602e561e.tar.zst ferdium-app-3423e6e44c2fd747537fc41739d18ddb602e561e.zip |
Create twitter-together.yml
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/twitter-together.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/twitter-together.yml b/.github/workflows/twitter-together.yml new file mode 100644 index 000000000..5d552928a --- /dev/null +++ b/.github/workflows/twitter-together.yml | |||
@@ -0,0 +1,26 @@ | |||
1 | on: [push, pull_request] | ||
2 | name: Twitter, together! | ||
3 | jobs: | ||
4 | preview: | ||
5 | name: Preview | ||
6 | runs-on: ubuntu-latest | ||
7 | if: github.event_name == 'pull_request' | ||
8 | steps: | ||
9 | - uses: gr2m/twitter-together@v1.x | ||
10 | env: | ||
11 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
12 | tweet: | ||
13 | name: Tweet | ||
14 | runs-on: ubuntu-latest | ||
15 | if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
16 | steps: | ||
17 | - name: checkout develop | ||
18 | uses: actions/checkout@v2 | ||
19 | - name: Tweet | ||
20 | uses: gr2m/twitter-together@v1.x | ||
21 | env: | ||
22 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
23 | TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
24 | TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
25 | TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | ||
26 | TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }} | ||