Skip to content

Commit 886b791

Browse files
committed
minor: fixed version command in github action
1 parent 1a1cdea commit 886b791

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/from_tag_to_build_release_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Store version
7171
id: version
72-
run: ./toc/cli.py --version
72+
run: python -m toc.cli --version
7373

7474
- name: Store partial changelog for release notes
7575
id: changelog

CONTRIBUTING.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// │ │ ├── Function-level time
1919
// │ │ ├── Line-level time
2020
// │ │ └── Memory allocation
21-
// │ └── Launching without installing
21+
// │ ├── Launching without installing
22+
// │ └── Release
2223
// │
2324
// └───────────────────────────────────────────────────────────────
2425
-->
@@ -208,13 +209,13 @@ python -m toc.cli -f "toc/toc.py"
208209

209210
Steps for a new release:
210211

211-
1. Run `toc -lf .tocfiles`
212-
2. Update version in "pyproject.toml"
213-
3. Save changes with `git commit`
214-
4. Add a temporary tag with `git tag v2.6.0`
215-
5. Update the changelog with `git-cliff -c pyproject.toml > CHANGELOG.md`
212+
1. Update version in "pyproject.toml"
213+
2. Save changes with `git commit`
214+
3. Add a temporary tag with `git tag v2.6.0` and rewrite the tag name
215+
4. Update the changelog with `git-cliff -c pyproject.toml > CHANGELOG.md`
216+
5. Run `toc -lf .tocfiles`
216217
6. Remove tag with `git tag --delete v2.6.0`
217218
7. Add changelog changes with `git add CHANGELOG.md && git commit -m "minor: updated CHANGELOG.md"`
218-
8. Add a final tag with `git tag v2.6.0`
219+
8. Move tag to the new commit with `git tag -fa v2.6.0`
219220
9. Upload the new commits and tags with `git push --follow-tags`
220221
10. Update [AUR](https://aur.archlinux.org/packages/toc) version once the new [PyPI](https://pypi.org/project/tableofcontents/) version is online

0 commit comments

Comments
 (0)