diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90b43c0ca0..25d856f455 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: true + fetch-depth: 0 - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -103,9 +104,17 @@ jobs: cd .. mv tempdir/leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-musl.zip . + - name: Set tag ref + run: echo "TAG_REF=refs/tags/${{ github.event.inputs.tag }}" >> $GITHUB_ENV + + - name: Debug GitHub Context + run: | + echo "GITHUB_REF=${{ github.ref }}" + echo "GITHUB_REF_TYPE=${{ github.ref_type }}" + - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(env.TAG_REF, 'refs/tags/') with: files: | leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-musl.zip