Skip to content

rename build to docs #3

rename build to docs

rename build to docs #3

Workflow file for this run

name: Deploy Flask Site to GitHub Pages
on:
push:
branches:
- main # Adjust if your main branch has a different name
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Ensure this matches your development environment
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Flask Flask-Frozen
- name: Freeze Flask app
run: python freeze.py # Ensure this script correctly builds your static site to the 'build/' directory
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # The directory where your site is generated
keep_files: true # Set to false to clean old files from gh-pages branch, true to allow incremental builds