Skip to content

Commit 2dd8be7

Browse files
authored
chore(release): switch to major and minor partial tags via PSR (python-semantic-release#1368)
* chore(release): set `add_partial_tags` to true for PSR releases * ci(release): remove job steps to create partial tags
1 parent 9bb4ac9 commit 2dd8be7

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -155,28 +155,6 @@ jobs:
155155
github_token: ${{ secrets.GITHUB_TOKEN }}
156156
tag: ${{ steps.release.outputs.tag }}
157157

158-
- name: Release | Update Minor Release Tag Reference
159-
if: steps.release.outputs.released == 'true' && steps.release.outputs.is_prerelease == 'false'
160-
env:
161-
FULL_VERSION_TAG: ${{ steps.release.outputs.tag }}
162-
GIT_COMMITTER_NAME: ${{ env.GITHUB_ACTIONS_AUTHOR_NAME }}
163-
GIT_COMMITTER_EMAIL: ${{ env.GITHUB_ACTIONS_AUTHOR_EMAIL }}
164-
run: |
165-
MINOR_VERSION_TAG="$(echo "$FULL_VERSION_TAG" | cut -d. -f1,2)"
166-
git tag --force --annotate "$MINOR_VERSION_TAG" "${FULL_VERSION_TAG}^{}" -m "$MINOR_VERSION_TAG"
167-
git push -u origin "$MINOR_VERSION_TAG" --force
168-
169-
- name: Release | Update Major Release Tag Reference
170-
if: steps.release.outputs.released == 'true' && steps.release.outputs.is_prerelease == 'false'
171-
env:
172-
FULL_VERSION_TAG: ${{ steps.release.outputs.tag }}
173-
GIT_COMMITTER_NAME: ${{ env.GITHUB_ACTIONS_AUTHOR_NAME }}
174-
GIT_COMMITTER_EMAIL: ${{ env.GITHUB_ACTIONS_AUTHOR_EMAIL }}
175-
run: |
176-
MAJOR_VERSION_TAG="$(echo "$FULL_VERSION_TAG" | cut -d. -f1)"
177-
git tag --force --annotate "$MAJOR_VERSION_TAG" "${FULL_VERSION_TAG}^{}" -m "$MAJOR_VERSION_TAG"
178-
git push -u origin "$MAJOR_VERSION_TAG" --force
179-
180158
outputs:
181159
released: ${{ steps.release.outputs.released || 'false' }}
182160
new-release-version: ${{ steps.release.outputs.version }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ sections = { "tests" = ["tests"] }
409409
ignore_names = ["change_to_ex_proj_dir", "init_example_project"]
410410

411411
[tool.semantic_release]
412+
add_partial_tags = true
412413
logging_use_named_masks = true
413414
commit_parser = "conventional"
414415
commit_parser_options = { parse_squash_commits = true, ignore_merge_commits = true }

0 commit comments

Comments
 (0)