Skip to content

Commit 329ff53

Browse files
fix: workflow should run on dynamic version updates to init.py
1 parent e0b8525 commit 329ff53

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/on-push-publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- "pyproject.toml"
8+
- "src/aio_lib_sandbox/__init__.py"
99

1010
jobs:
1111
publish:

RELEASING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ pip install hatch
3333
pytest
3434
```
3535

36-
2. **Bump the version** in `pyproject.toml` using `hatch`:
36+
2. **Bump the version** using `hatch`:
3737

3838
Or set a specific version directly:
3939

4040
```bash
4141
hatch version 0.1.0a1
4242
```
4343

44-
> This edits `pyproject.toml` in place. Verify the new version with `hatch version`.
44+
> This edits `src/aio_lib_sandbox/__init__.py` in place because `pyproject.toml` uses Hatch's dynamic version path. Verify the new version with `hatch version`.
4545
4646
3. **Do a dry-run build** to catch any packaging issues before committing:
4747

@@ -54,7 +54,7 @@ pip install hatch
5454
4. **Commit and tag** the version bump:
5555

5656
```bash
57-
git add pyproject.toml
57+
git add src/aio_lib_sandbox/__init__.py
5858
git commit -m "chore: release v$(hatch version)"
5959
git tag "v$(hatch version)"
6060
```
@@ -66,7 +66,7 @@ pip install hatch
6666
git push origin "v$(hatch version)"
6767
```
6868

69-
6. **CI publishes to PyPI automatically.** The `on-push-publish-to-pypi` workflow triggers because `pyproject.toml` changed on `main`. Monitor progress in the [Actions tab](https://github.com/adobe/aio-lib-sandbox-python/actions).
69+
6. **CI publishes to PyPI automatically.** The `on-push-publish-to-pypi` workflow triggers because `src/aio_lib_sandbox/__init__.py` changed on `main`. Monitor progress in the [Actions tab](https://github.com/adobe/aio-lib-sandbox-python/actions).
7070

7171
7. **Verify the release** appeared on PyPI:
7272

0 commit comments

Comments
 (0)