Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Publish
on:
push:
tags: ["v*"]
workflow_call:
inputs:
tag:
required: true
type: string

env:
PYTHON_VERSION: "3.11"
Expand All @@ -24,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.tag || github.ref_name }}
ref: ${{ github.ref_name }}
fetch-depth: 0

- uses: astral-sh/setup-uv@v7
Expand Down Expand Up @@ -96,12 +91,10 @@ jobs:
echo "Failed to verify PyPI installation"
exit 1
env:
TAG: ${{ inputs.tag || github.ref_name }}
TAG: ${{ github.ref_name }}

github-release:
name: Create GitHub release
# Only on tag push — release-please creates its own release via workflow_call
if: github.event_name == 'push'
needs: verify-pypi
runs-on: ubuntu-24.04
permissions:
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,10 @@ jobs:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json

publish:
name: Publish
needs: release-please
if: needs.release-please.outputs.release_created
permissions:
id-token: write
contents: write
uses: ./.github/workflows/publish.yaml
with:
tag: ${{ needs.release-please.outputs.tag_name }}

update-citation-date:
name: Update CITATION.cff date
needs: publish
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ubuntu-24.04
steps:
- name: Generate token for Release Bot
Expand Down Expand Up @@ -72,7 +62,8 @@ jobs:

deploy-docs:
name: Deploy documentation
needs: [release-please, publish]
needs: release-please
if: needs.release-please.outputs.release_created
uses: ./.github/workflows/docs.yaml
with:
deploy: true
Expand Down
Loading