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
5 changes: 1 addition & 4 deletions .github/workflows/ci-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ jobs:
deploy:
needs: [determine-version, build-manylinux, build-manylinux-aarch64, build]
if: |
(github.event_name == 'push' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))) ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) ||
(github.event_name == 'pull_request' && github.base_ref == 'main' && startsWith(github.head_ref, 'release/')) ||
(github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
Expand Down Expand Up @@ -339,8 +338,6 @@ jobs:
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "Uploading release PR development version ${{ steps.version.outputs.version }} to PyPI..."
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "Uploading development snapshot version ${{ steps.version.outputs.version }} to PyPI..."
else
echo "Uploading release version ${{ steps.version.outputs.version }} to PyPI..."
fi
Expand Down
14 changes: 10 additions & 4 deletions docs/mapget-dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,16 @@ When the guarded release workflow succeeds, GitHub Actions will automatically:

### Development Snapshots

Every push to the `main` branch automatically triggers a development release:
- Version is determined by `setuptools_scm` (e.g., `2025.3.0.dev61` for the 61st commit after the last tag)
- Development versions are uploaded to PyPI and can be installed with `pip install mapget --pre`
- No manual intervention required - the version is automatically derived from git history
Pull requests from `release/X.Y.Z` to `main` publish development previews:

- The preview version uses the planned CMake version and a unique CI serial
(for example, `2026.3.5.dev31001`).
- Development versions can be installed with `pip install mapget --pre`.
- Ordinary `main` pushes run the complete wheel matrix but do not upload
another PyPI snapshot.
- Superseded development previews should be deleted from PyPI after the final
release is available. Retaining every platform wheel from every preview will
eventually exhaust PyPI's per-project storage quota.

### Version Management

Expand Down
Loading