We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 218bf56 commit c6d3b28Copy full SHA for c6d3b28
.github/workflows/cd.yaml
@@ -22,8 +22,11 @@ jobs:
22
env:
23
TAG: ${{ github.event.ref }}
24
run: |
25
+ # Remove the `refs/tags` prefix of the git tag
26
TAG_NO_PREFIX=$(echo "$TAG" | sed 's/^refs\/tags\///')
27
+ # Extract the path of the module to publish from the tag
28
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
30
echo "SERVICE_PATH=$SERVICE_PATH" >> $GITHUB_ENV
31
- name: Build & Publish to PyPi
32
uses: JRubics/[email protected]
0 commit comments