Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify different extract path #768

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

gnpaone
Copy link

@gnpaone gnpaone commented Sep 21, 2024

I also need option to extract to different path. I have added code to point to different path, if not set it will point to out-file-path as intended in current code or else to specified path

@gnpaone
Copy link
Author

gnpaone commented Sep 21, 2024

I just intended to combine these both steps as robinraju/release-downloader action already has code to extract files so I added to specify different directory

- name: Download release artifact
  uses: robinraju/[email protected]
  with:
    tag: ${{ steps.latesttag.outputs.tag }}
    fileName: just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.*
    out-file-path: './release'
- name: Extract and Copy Binary
  shell: bash
  run: |
    mkdir -p ./target/${{ matrix.TARGET }}/release
    if [[ ${{ matrix.OS }} == 'windows-2022' ]]; then
      unzip ./release/just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.zip -d ./target/${{ matrix.TARGET }}/release/
    else
      tar -xzf ./release/just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.tar.gz -C ./target/${{ matrix.TARGET }}/release/
    fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant