Skip to content

Create LICENSE

Create LICENSE #13

name: Build & Deploy Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
# Ensure deploys only come from main (both push + manual runs must select main)
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --no-cache-dir -r requirements.txt
- name: Build index into docs/
run: |
python -m profile_manager build_index
echo "Built files in docs/:"
ls -la docs
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact (docs/)
uses: actions/upload-pages-artifact@v3
with:
path: docs
deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4