Skip to content

Commit

Permalink
New posts daily
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenBagTwo committed Jul 28, 2023
1 parent d4a93f4 commit a310985
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/generate_content.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Create a new post

name: Generate Post

on:
schedule:
- cron: 15 13 * * 2-6 # run at 9:15am EDT, Tues-Sat

jobs:
generate_post:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install yfinance requests
- name: Make a new post
run: |
python post_generator.py
- name: Publish new post
run: |
git add content/
git commit -m "New post for $(date)"
git push

0 comments on commit a310985

Please sign in to comment.