Tweet Daily Video #871
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tweet Daily Video | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "5 8 * * *" # Daily (00:05 every day in Pacific Timezone) | |
env: | |
REACT_APP_PRODUCT_HUNT_API_KEY: ${{ secrets.REACT_APP_PRODUCT_HUNT_API_KEY }} | |
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} | |
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} | |
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} | |
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
jobs: | |
render: | |
name: Tweet Daily Video | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/setup-node@main | |
- run: sudo apt update | |
- run: sudo apt install ffmpeg | |
- run: mkdir data | |
- run: yarn install | |
- run: yarn fetch | |
- run: yarn build | |
- run: yarn post-tweet | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: video.mp4 | |
path: out/video.mp4 |