From 68db0eab70a1b3b0cac4475006c220ec36f40a7d Mon Sep 17 00:00:00 2001 From: saudzahirr Date: Tue, 25 Aug 2026 15:40:43 +0500 Subject: [PATCH] Drop the Test PyPI publish stage Releases now go straight to PyPI once the test matrix passes. The Download Distributions step is inlined into publish-to-pypi: it was a YAML anchor defined inside publish-test-pypi and aliased from there, so removing that job would have left a dangling alias. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/publish_dist.yml | 32 +++--------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish_dist.yml b/.github/workflows/publish_dist.yml index b59c5fd..1ce18c6 100644 --- a/.github/workflows/publish_dist.yml +++ b/.github/workflows/publish_dist.yml @@ -14,49 +14,23 @@ jobs: testing: uses: ./.github/workflows/code_test.yml - publish-test-pypi: + publish-to-pypi: runs-on: ubuntu-latest environment: - name: test-pypi + name: pypi needs: testing steps: - - &download_dist - name: Download Distributions + - name: Download Distributions uses: actions/download-artifact@v8 with: name: ${{ needs.testing.outputs.artifact_name }} run-id: ${{ needs.testing.outputs.artifact_run_id }} path: ./dist - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - verbose: true - - - name: Smoke Test on Test PyPI - shell: bash - run: | - sleep 60 - pip install -v --index-url https://test.pypi.org/simple/ \ - --extra-index-url https://pypi.org/simple/ brayer - python -c "import brayer;print(brayer.__version__)" - - publish-to-pypi: - runs-on: ubuntu-latest - - environment: - name: pypi - - needs: testing - - steps: - - - *download_dist - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: