diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 85bcdbbbf..33addda88 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -19,9 +19,7 @@ jobs: id: get_version run: | TAG=$(basename ${GITHUB_REF}) - VERSION=${TAG/v/} echo "::set-output name=TAG::$TAG" - echo "::set-output name=VERSION::$VERSION" - name: Create Release id: create_release uses: release-drafter/release-drafter@v5 @@ -43,10 +41,10 @@ jobs: - name: Create Upload Assets run: | rm -rf build/* - mv lina lina-${{ steps.get_version.outputs.VERSION }} - tar -czf lina-${{ steps.get_version.outputs.VERSION }}.tar.gz lina-${{ steps.get_version.outputs.VERSION }} - echo $(md5sum lina-${{ steps.get_version.outputs.VERSION }}.tar.gz | awk '{print $1}') > build/lina-${{ steps.get_version.outputs.VERSION }}.tar.gz.md5 - mv lina-${{ steps.get_version.outputs.VERSION }}.tar.gz build/ + mv lina lina-${{ steps.get_version.outputs.TAG }} + tar -czf lina-${{ steps.get_version.outputs.TAG }}.tar.gz lina-${{ steps.get_version.outputs.TAG }} + echo $(md5sum lina-${{ steps.get_version.outputs.TAG }}.tar.gz | awk '{print $1}') > build/lina-${{ steps.get_version.outputs.TAG }}.tar.gz.md5 + mv lina-${{ steps.get_version.outputs.TAG }}.tar.gz build/ - name: Release Upload Assets uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/')