From 533d6eba22f7122c133e4884fae4c1ea7b5aa242 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Wed, 28 Feb 2024 20:31:22 +0100 Subject: [PATCH] Improve PyPI deployment debuggability Since it doesn't work. --- .github/workflows/deployment.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 1a1cec0..4d6b1a9 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -37,6 +37,9 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # For getting tags from the repo + - name: Print current revision + run: | + git describe --dirty - name: Cache .tox directory uses: actions/cache@v3 with: @@ -49,10 +52,19 @@ jobs: run: | . ./env/bin/activate pip install tox==${{ env.TOX_VERSION }} + - name: Prevent 0.0.0 releases + run: | + tox -e version.py + cat px/version.py + ! grep '0.0.0' px/version.py - name: Run tox in our virtualenv run: | . ./env/bin/activate tox + - name: Print debug info + run: | + ls dist/ + ! ls dist/ | grep '0.0.0' # # Wheel created, publish it!