diff --git a/.github/workflows/new_release.yml b/.github/workflows/new_release.yml index 532086d2d..1e3ad5a8c 100644 --- a/.github/workflows/new_release.yml +++ b/.github/workflows/new_release.yml @@ -20,9 +20,9 @@ jobs: - name: Download war File run: | - export LATEST_SNAPSHOT=$(cat maven-metadata.xml | grep "" | tail -n 1 | xargs | cut -c 10-23) - echo $LATEST_SNAPSHOT - wget -O ConferenceCall-${{ github.ref_name }}.war "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia.webrtc&a=ConferenceCall&v=${LATEST_SNAPSHOT}&e=war" + VERSION=${{ github.ref_name }} + export VERSION=${VERSION:1} + wget -O ConferenceCall-${{ github.ref_name }}.war "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=io.antmedia.webrtc&a=ConferenceCall&v=${VERSION}&e=war" ls -al - name: Create Release