Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhachane authored May 8, 2024
1 parent ca73d2a commit ae0ac92
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ jobs:
- name: Set publish target
id: publish_target
run: |
echo "PUBLISH_ALL_TARGET=true" >> "$GITHUB_OUTPUT"
echo "TAG_NAME=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
echo "::set-output name=PUBLISH_ALL_TARGET::true"
echo "::set-output name=TAG_NAME::${{ github.event.release.tag_name }}"
if [[ ${{ github.event.release.tag_name }} == *"python-sdk"* ]]; then
echo "PUBLISH_ALL_TARGET=false" >> "$GITHUB_OUTPUT"
echo "::set-output name=PUBLISH_ALL_TARGET::false"
elif [[ ${{ github.event.release.tag_name }} == *"java-sdk"* ]]; then
echo "PUBLISH_ALL_TARGET=false" >> "$GITHUB_OUTPUT"
echo "::set-output name=PUBLISH_ALL_TARGET::false"
- name: Get the version
id: get_sdk_version
run: |
echo "AVI_VERSION=$(python ./python/version.py)" >> "$GITHUB_OUTPUT"
echo "::set-output name=AVI_VERSION::$(python ./python/version.py)"
JAVA_VERSION=$(echo ${GITHUB_REF##*/} | cut -d - -f 2)
if [[ "$JAVA_VERSION" == *"post"* ]]; then
echo "Java version post"
Expand All @@ -56,7 +56,7 @@ jobs:
JAVA_VERSION=$JAVA_VERSION.RELEASE
fi
echo "Java version ${JAVA_VERSION}"
echo "JAVA_RELEASE_VERSION=${JAVA_VERSION}" >> "$GITHUB_OUTPUT"
echo "::set-output name=JAVA_RELEASE_VERSION::${JAVA_VERSION}"
- if: steps.publish_target.outputs.PUBLISH_ALL_TARGET == 'true' || contains(steps.publish_target.outputs.TAG_NAME, 'java-sdk')
name: Publish JAVA Packages
Expand Down Expand Up @@ -181,4 +181,3 @@ jobs:
asset_path: avisdk-${{ steps.get_sdk_version.outputs.JAVA_RELEASE_VERSION }}-sources.jar
asset_name: Java-avisdk-${{ steps.get_sdk_version.outputs.JAVA_RELEASE_VERSION }}-javasources.jar
asset_content_type: application/java-archive

0 comments on commit ae0ac92

Please sign in to comment.