Skip to content

Add markdown rendering for post content with professional styling #89

Add markdown rendering for post content with professional styling

Add markdown rendering for post content with professional styling #89

# Deploy Django Blog to Fly.io
name: Deploy to Fly.io
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Django checks
run: |
python manage.py check --deploy
env:
SECRET_KEY: test-secret-key-for-ci
DEBUG: 'False'
DBNAME: test
DBUSER: test
DBPASS: test
DBHOST: localhost
DBPORT: '5432'
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
environment:
name: production
url: https://blog.ericgitangu.com
steps:
- uses: actions/checkout@v4
- name: Setup Fly.io CLI
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to Fly.io
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}