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
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') ||
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down