Publish to WordPress #146
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: Publish to WordPress | |
on: | |
workflow_run: | |
workflows: ["Generate Daily Markdown"] | |
types: [completed] | |
jobs: | |
publish_to_wordpress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install requests | |
pip install markdown | |
- name: Publish to WordPress | |
env: | |
WORDPRESS_URL: ${{ secrets.WORDPRESS_URL }} | |
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }} | |
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }} | |
run: | | |
python scripts/publish_to_wordpress.py |