diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5953c6d70..b131b4906f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: - name: Zip run: | - mkdir leo_ubuntu && mv target/release/leo leo_ubuntu - zip -r leo_ubuntu.zip leo_ubuntu + mkdir leo_${{ steps.get_version.outputs.version }}_ubuntu && mv target/release/leo leo_${{ steps.get_version.outputs.version }}_ubuntu + zip -r leo_${{ steps.get_version.outputs.version }}_ubuntu.zip leo_${{ steps.get_version.outputs.version }}_ubuntu - name: Release uses: softprops/action-gh-release@v1 @@ -79,17 +79,20 @@ jobs: env: CARGO_NET_GIT_FETCH_WITH_CLI: true + - id: Fetch version number + uses: battila7/get-version-action@v2 + - name: Zip run: | - mkdir leo_macOS && mv target/release/leo leo_macOS - zip -r leo_macOS.zip leo_macOS + mkdir leo_${{ steps.get_version.outputs.version }}_macOS && mv target/release/leo leo_${{ steps.get_version.outputs.version }}_macOS + zip -r leo_${{ steps.get_version.outputs.version }}_macOS.zip leo_${{ steps.get_version.outputs.version }}_macOS - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | - leo_macOS.zip + leo_${{ steps.get_version.outputs.version }}_macOS.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}