forked from daattali/beautiful-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 867 Bytes
/
ghost.yaml
File metadata and controls
35 lines (28 loc) · 867 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
25
26
27
28
29
30
31
32
33
34
35
name: Generate Tech Blog Post
on:
# schedule:
# - cron: '11 13 * * *' # 11:11 PM AEST = 13:11 UTC
workflow_dispatch:
jobs:
ghost-writer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install openai requests beautifulsoup4 python-dotenv pyyaml
- name: Run ghost writer
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: python ghost/ghost_writer.py
- name: Commit changes
run: |
git config --global user.name 'Lester Knight Chaykin'
git config --global user.email 'lester@4511932.com'
git add _posts/*.md
git commit -m "Automated AGI blog post" || echo "No changes to commit"
git push