Skip to content

Commit c6d3b28

Browse files
committed
added comments to pipeline
1 parent 218bf56 commit c6d3b28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/cd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
env:
2323
TAG: ${{ github.event.ref }}
2424
run: |
25+
# Remove the `refs/tags` prefix of the git tag
2526
TAG_NO_PREFIX=$(echo "$TAG" | sed 's/^refs\/tags\///')
27+
# Extract the path of the module to publish from the tag
2628
SERVICE_PATH=$(echo "$TAG_NO_PREFIX" | rev | cut -d'/' -f2- | rev)
29+
# Save the path to the module for use in the build/publish step to only update the module associated with this tag
2730
echo "SERVICE_PATH=$SERVICE_PATH" >> $GITHUB_ENV
2831
- name: Build & Publish to PyPi
2932
uses: JRubics/[email protected]

0 commit comments

Comments
 (0)