Skip to content

Commit

Permalink
set proper path
Browse files Browse the repository at this point in the history
  • Loading branch information
biryukovmaxim committed Sep 13, 2024
1 parent 427dc4c commit 0056ce1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/anchor-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,26 @@ jobs:
path: ${{ github.workspace }}/anchor-cli-bin
key: ${{ runner.os }}-anchor-${{ steps.set_version.outputs.version_or_rev }}-${{ github.event.inputs.target }}-${{ github.event.inputs.rust_version }}

- name: Prepare binary for release
run: |
cp ${{ github.workspace }}/anchor-cli-bin/anchor-${{ steps.set_version.outputs.version_or_rev }}-${{ github.event.inputs.target }} ${{ github.workspace }}/anchor-cli-bin/anchor-${{ github.event.inputs.target }}
- name: Debug - List files
run: |
ls -la ${{ github.workspace }}/anchor-cli-bin
ls -la ~/.cargo/bin
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: anchor-${{ steps.set_version.outputs.version_or_rev }}
name: Anchor CLI ${{ steps.set_version.outputs.version_or_rev }}
body: "This release contains Anchor CLI binary for ${{ github.event.inputs.target }} target."
files: ${{ github.workspace }}/anchor-cli-bin/anchor-${{ steps.set_version.outputs.version_or_rev }}-${{ github.event.inputs.target }}
files: ${{ github.workspace }}/anchor-cli-bin/anchor-${{ github.event.inputs.target }}
draft: false
prerelease: false

- name: Get Release URL
run: |
echo "Release URL: ${{ steps.release.outputs.url }}"
echo "Binary name: anchor-${{ steps.set_version.outputs.version_or_rev }}-${{ github.event.inputs.target }}"
echo "Binary name: anchor-${{ github.event.inputs.target }}"
echo "Download URL: ${{ steps.release.outputs.url }}/download/anchor-${{ steps.set_version.outputs.version_or_rev }}/anchor-${{ github.event.inputs.target }}"

0 comments on commit 0056ce1

Please sign in to comment.