diff --git a/.github/workflows/publish-test.yml b/.github/workflows/publish-test.yml index 3749e32..b22d085 100644 --- a/.github/workflows/publish-test.yml +++ b/.github/workflows/publish-test.yml @@ -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 @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31864b4..527fb70 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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