Files
awesome-python/.github/workflows/deploy-website.yml
Vinta Chen b6d1bf9307 ci: use uv dependency groups and Makefile target for deploy workflow
Switches install step from --no-dev to --group build for explicit
dependency group selection, and replaces the bare python invocation
with `make build` to use the canonical build entrypoint.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-18 21:33:57 +08:00

49 lines
867 B
YAML

name: Deploy Website
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install dependencies
run: uv sync --group build
- name: Build site
run: make build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: website/output/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: https://awesome-python.com/
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4