Skip to content

Commit

Permalink
build sdist step coorection
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas-E committed Oct 8, 2024
1 parent 2e2e37e commit d1bbd82
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ jobs:
- name: Describe Tag & Branch Name
id: build_names
run: |
echo TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
# Only set TAG_NAME if the event is a tag push
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
echo TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
else
echo "This event is not a tag push. Skipping sdist build."
exit 1 # Exit if not a tag
fi
- name: Build sdist
run: |
Expand All @@ -82,7 +88,7 @@ jobs:
mkdir app
cp -r ../app/tng app
python -m pip install --upgrade pip
pip install build
python -m pip install build
python -m build
env:
TAG_NAME: ${{ steps.build_names.outputs.TAG_NAME }}
Expand Down

0 comments on commit d1bbd82

Please sign in to comment.