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
13 changes: 2 additions & 11 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:

jobs:
build-and-publish-dry-run:
build-and-publish-test:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -29,14 +29,5 @@ jobs:
- name: Build the package
run: uv build

- name: Check version is prerelease
run: |
python - <<'EOF'
from importlib.metadata import version
v = version("avex")
assert any(x in v for x in ("a", "b", "rc", "dev")), f"Refusing to publish non-prerelease version: {v}"
EOF

- name: Publish to TestPyPI
run: |
run: uv publish --publish-url https://test.pypi.org/legacy/ --trusted-publishing
run: uv publish --publish-url https://test.pypi.org/legacy/ --trusted-publishing always --keyring-provider disabled
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ jobs:
run: uv build

- name: Publish to PyPI
run: |
run: uv publish --publish-url https://pypi.org/legacy/ --trusted-publishing
run: uv publish --publish-url https://upload.pypi.org/legacy/ --trusted-publishing always --keyring-provider disabled
Loading