fix: handle newline characters in markdown file processing #1
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: Post Articles | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'blogposts/**' | |
jobs: | |
post-articles: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Run upload script | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
API_URL: ${{ secrets.API_URL }} | |
run: python hack/post-articles.py |