v0.1.0 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
release: | |
types: [ published ] | |
permissions: | |
id-token: write # Required for trusted publishing | |
contents: read # Required for checkout | |
jobs: | |
run: | |
name: Build and publish release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: uv.lock | |
- name: Set up Python | |
run: uv python install 3.12 | |
- name: Build | |
run: uv build | |
# Using Trusted Publishing via PyPI and uv | |
- name: Debug and Publish | |
run: | | |
echo "Current directory: $(pwd)" | |
echo "Workflow file contents:" | |
cat .github/workflows/publish.yml | |
echo "Environment variables:" | |
env | grep -i action | |
echo "Running publish command..." | |
uv publish --verbose --trusted-publishing always |