Skip to content

CI: Update peaceiris/actions-gh-pages GitHub Action to v4 (#173) #288

CI: Update peaceiris/actions-gh-pages GitHub Action to v4 (#173)

CI: Update peaceiris/actions-gh-pages GitHub Action to v4 (#173) #288

Workflow file for this run

on: [push, pull_request]
name: Twitter, together!
jobs:
preview:
name: Preview
runs-on: "ubuntu-22.04"
if: github.event_name == 'pull_request'
steps:
- uses: twitter-together/action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tweet:
name: Tweet
runs-on: "ubuntu-22.04"
environment: thephpf
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: checkout main
uses: actions/checkout@v3
- name: Tweet
uses: twitter-together/action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}