Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
timosachsenberg authored Apr 18, 2024
1 parent 35880f1 commit 16da365
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
# Normalize path to only contain front slashes
- name: Normalize path on windows
if: startsWith(matrix.os, 'windows')
id: normalize_ws
run: |
$normalizedWorkspace = $env:GITHUB_WORKSPACE -replace '\\', '/'
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
shell: bash

- name: Create Release (Windows)
if: github.event_name == 'workflow_dispatch' && runner.os == "Windows"
if: github.event_name == 'workflow_dispatch' && && startsWith(matrix.os, 'windows')
id: create_release_win
uses: softprops/action-gh-release@v2
env:
Expand All @@ -116,7 +117,7 @@ jobs:
"${{ steps.normalize_ws.outputs.NORMALIZED_WORKSPACE }}/contrib-build/contrib_build-${{runner.os}}.tar.gz"
- name: Create Release (Mac and Linux)
if: github.event_name == 'workflow_dispatch' && runner.os != "Windows"
if: github.event_name == 'workflow_dispatch' && !startsWith(matrix.os, 'windows')
id: create_release_mac_linux
uses: softprops/action-gh-release@v2
env:
Expand Down

0 comments on commit 16da365

Please sign in to comment.