Skip to content

Commit

Permalink
further trial of gh-action on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stschiff committed Mar 7, 2024
1 parent 47fd3af commit fb88767
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release
on:
on: push
# Trigger the workflow on the new 'v*' tag created
push:
tags:
- "v*"
# push:
# tags:
# - "v*"

jobs:
create_release:
Expand All @@ -13,12 +13,12 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
draft: true
# - name: Create Release
# id: create_release
# uses: ncipollo/release-action@v1
# with:
# name: Release ${{ github.ref_name }}
# draft: true

# build-on-centos:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,15 +75,31 @@ jobs:

- name: Rename binaries (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: foreach ($tool in "genoStats", "pileupCaller", "vcf2eigenstrat") { Rename-Item "$env:USERPROFILE\AppData\Roaming\local\bin\$tool" "$tool-windows" }
# stack on windows installs into <Home>\AppData\Roaming\local\bin
# the default shell on Windows is powershell, so we use that
run: |
foreach ($tool in "genoStats", "pileupCaller", "vcf2eigenstrat") { Rename-Item "$env:USERPROFILE\AppData\Roaming\local\bin\$tool.exe" "$tool-windows.exe" }
- name: Upload Release Asset
id: upload-release-asset
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
draft: true
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "~/.local/bin/*"
artifactContentType: application/octet-stream
# - name: Upload Release Asset (not windows)
# id: upload-release-asset
# uses: ncipollo/release-action@v1
# if: ${{ matrix.os != 'windows-latest' }}
# with:
# name: Release ${{ github.ref_name }}
# draft: true
# allowUpdates: true
# artifactErrorsFailBuild: true
# artifacts: "~/.local/bin/*"
# artifactContentType: application/octet-stream

# - name: Upload Release Asset (windows)
# id: upload-release-asset
# uses: ncipollo/release-action@v1
# if: ${{ matrix.os == 'windows-latest' }}
# with:
# name: Release ${{ github.ref_name }}
# draft: true
# allowUpdates: true
# artifactErrorsFailBuild: true
# artifacts: '%userprofile%\AppData\Roaming\local\bin\*.exe'
# artifactContentType: application/octet-stream

0 comments on commit fb88767

Please sign in to comment.