Skip to content

Commit 5ce025f

Browse files
chore: Adding semantic version as input to build wheels as well
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 19424bc commit 5ce025f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
type: string
1717

1818
jobs:
19+
prepare-versions:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
highest_semver_tag: ${{ steps.strip_prefix.outputs.highest_semver_tag }}
1923
get-version:
2024
if: github.repository == 'feast-dev/feast'
2125
runs-on: ubuntu-latest
@@ -42,6 +46,13 @@ jobs:
4246
fi
4347
echo "Validated custom version: ${{ github.event.inputs.custom_version }}"
4448
fi
49+
- name: Strip 'v' Prefix for Highest SemVer Tag
50+
id: strip_prefix
51+
run: |
52+
HIGHEST_SEMVER_TAG="${{ github.event.inputs.custom_version#v }}"
53+
echo "::set-output name=highest_semver_tag::$HIGHEST_SEMVER_TAG"
54+
echo "Highest SemVer Tag: $HIGHEST_SEMVER_TAG"
55+
4556
4657
- name: Get release version
4758
id: get_release_version
@@ -172,6 +183,7 @@ jobs:
172183
uses: ./.github/workflows/build_wheels.yml
173184
with:
174185
release_version: ${{ github.event.inputs.custom_version }}
186+
highest_semver_tag: ${{ needs.prepare-versions.outputs.highest_semver_tag }}
175187

176188
publish-python-sdk:
177189
if: github.repository == 'feast-dev/feast'

0 commit comments

Comments
 (0)