Skip to content

Commit

Permalink
Merge pull request #28461 from ProvableHQ/fix/release-ci-linux-musl
Browse files Browse the repository at this point in the history
[Fix] Temporarily force tag
  • Loading branch information
d0cd authored Nov 20, 2024
2 parents 3906c9a + d477d51 commit bac534f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Optional tag to build'
required: false
description: 'Tag to build'
required: true

env:
RUST_BACKTRACE: 0
Expand Down Expand Up @@ -65,6 +65,7 @@ jobs:
with:
submodules: true
fetch-depth: 0
ref: ${{ inputs.tag }}

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -104,18 +105,12 @@ 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(env.TAG_REF, 'refs/tags/')
if: startsWith(inputs.tag, 'v')
with:
tag_name: ${{ inputs.tag }}
files: |
leo-${{ steps.get_version.outputs.version }}-x86_64-unknown-linux-musl.zip
env:
Expand Down

0 comments on commit bac534f

Please sign in to comment.