From df5c3c23de2a8a5dddb833d8b445b5ce58a695a3 Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Mon, 25 Aug 2025 17:18:32 +0700 Subject: [PATCH 1/2] FIX: pypi and github release pipelines --- .github/workflows/release.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 583f378..99b8963 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -142,6 +142,7 @@ jobs: runs-on: ubuntu-latest needs: [validate-version, build] if: | + success() && needs.build.result == 'success' && startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, 'alpha') || contains(github.ref, 'beta') || @@ -153,6 +154,16 @@ jobs: uses: actions/download-artifact@v4 with: name: distribution-packages + path: dist/ + + - name: DEBUG Check current directory + run: | + echo "Current directory:" + pwd + echo "Contents:" + ls -la + echo "Dist directory:" + ls -la dist/ || echo "dist/ doesn't exist" - name: Set up Python uses: actions/setup-python@v4 @@ -216,13 +227,22 @@ jobs: name: Create GitHub Release runs-on: ubuntu-latest needs: [test-pypi, pypi] - if: always() && startsWith(github.ref, 'refs/tags/v') + if: | + always() && + startsWith(github.ref, 'refs/tags/v') && + ( + (needs.test-pypi.result == 'success' || needs.test-pypi.result == 'skipped') && + (needs.pypi.result == 'success' || needs.pypi.result == 'skipped') + ) + permissions: + contents: write steps: - name: Download build artifacts uses: actions/download-artifact@v4 with: name: distribution-packages + path: dist/ - name: Create GitHub Release uses: softprops/action-gh-release@v1 From 2f3a20ef8417f553f4daa9cfdb9a55b810e09603 Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Tue, 26 Aug 2025 10:32:34 +0700 Subject: [PATCH 2/2] Bump version to v0.1.0rc4 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fb9ecd2..af0170d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta' [project] name = 'xmlassert' -version = '0.1.0rc1' +version = '0.1.0rc4' description = 'Human-readable XML comparison for testing with clean diff output' readme = 'README.md' requires-python = '>=3.8'