Skip to content

Commit

Permalink
fixed windows renaming step
Browse files Browse the repository at this point in the history
  • Loading branch information
stschiff committed Mar 6, 2024
1 parent 95d98d5 commit bfa9058
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# bash .github/workflows/upload-github-release-asset.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=stschiff repo=sequenceTools tag=$(basename $GITHUB_REF) filename=$TOOL-linux
# done

build:
build-on-mac-and-linux:
needs: [create_release]
name: ${{ matrix.os }}/${{ github.ref_name }}
runs-on: ${{ matrix.os }}
Expand All @@ -69,9 +69,13 @@ jobs:
- name: Build
run: stack install --system-ghc

- name: Rename binaries
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do mv ~/.local/bin/$TOOL ~/.local/bin/$TOOL-$RUNNER_OS; done
- name: Rename binaries (not windows)
if: ${{ matrix.os != "windows-latest" }}
run: for TOOL in genoStats pileupCaller vcf2eigenstrat; do mv ~/.local/bin/$TOOL ~/.local/bin/$TOOL-$RUNNER_OS; done

- name: Rename binaries (windows)
if: ${{ matrix.os == "windows-latest" }}
run: for %%i in (genoStats pileupCaller vcf2eigenstrat) do ren "%USERPROFILE%\.local\bin\%%i" "%%i-windows"

- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -82,5 +86,4 @@ jobs:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "~/.local/bin/*"
artifactContentType: application/octet-stream

artifactContentType: application/octet-stream

0 comments on commit bfa9058

Please sign in to comment.