Skip to content

chore: update uv.lock for v2.2.0 #5

chore: update uv.lock for v2.2.0

chore: update uv.lock for v2.2.0 #5

Workflow file for this run

# Release + Publish studyctl to PyPI.
# Trigger: push a v* tag.
#
# Combined workflow (release + publish in one) to avoid the GITHUB_TOKEN
# cascade limitation where events created by GITHUB_TOKEN don't trigger
# other workflows.
#
# PyPI setup (one-time):
# 1. Go to https://pypi.org/manage/project/studyctl/settings/publishing/
# 2. Add GitHub as trusted publisher:
# - Owner: NetDevAutomate
# - Repository: socratic-study-mentor
# - Workflow: publish.yml
# - Environment: pypi
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog for release
uses: orhun/git-cliff-action@v4
id: changelog
with:
config: cliff.toml
args: --latest --strip header
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.content }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Build package
run: uv build --package studyctl --no-sources
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # OIDC for PyPI trusted publishing
environment:
name: pypi
url: https://pypi.org/project/studyctl/
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# No API token needed -- uses OIDC