Skip to content

Commit ec863c2

Browse files
stonebigclaude
andcommitted
wppm prod publish: tag wppm-<version> after upload
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e842347 commit ec863c2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎.github/workflows/build_wppm_prod_publish.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,23 @@ jobs:
9191
with:
9292
skip-existing: true
9393
verbose: true # Enable verbose output
94+
95+
tag_release:
96+
name: Tag the published commit
97+
needs: [upload_pypi_test]
98+
runs-on: ubuntu-24.04
99+
permissions:
100+
contents: write
101+
steps:
102+
- uses: actions/checkout@v6
103+
104+
- name: tag wppm-<version>, once
105+
shell: bash
106+
run: |
107+
TAG="wppm-$(sed -n "s/^__version__ = '\(.*\)'/\1/p" wppm/__init__.py)"
108+
if git ls-remote --exit-code --tags origin "refs/tags/$TAG" >/dev/null; then
109+
echo "$TAG already exists"
110+
else
111+
git tag "$TAG" "$GITHUB_SHA"
112+
git push origin "$TAG"
113+
fi

0 commit comments

Comments
 (0)