Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser committed Jan 10, 2024
1 parent 1544c1c commit 8c1c18a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release_cut_new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ on:
inputs:
is_prelease:
description: 'Should be a pre-release?'
type: boolean
required: true
default: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
tag_value:
description: 'Create a new release from latest master with the given tag, if this is left blank it will bump the patch version. You dont need to include the "v" prefix'
required: false
Expand Down Expand Up @@ -70,7 +73,7 @@ jobs:
with:
body_path: ./release-notes.md
draft: true
prerelease: ${{ inputs.is_prelease == true || inputs.is_prelease == 'true' }}
prerelease: ${{ github.event_name != 'workflow_dispatch' || inputs.is_prelease == 'true' }}
tag_name: ${{ steps.tag_version.outputs.new_tag }}

- name: Create a GitHub Release (Push)
Expand All @@ -97,7 +100,7 @@ jobs:
cmakeflags: ""
buildAppImage: true
fetchTags: true
stableBuild: ${{ inputs.is_prelease == 'false' }}
stableBuild: ${{ github.event_name != 'workflow_dispatch' && inputs.is_prelease == 'false' }}
secrets: inherit

build_linux_flatpak:
Expand All @@ -114,7 +117,7 @@ jobs:
branch: "stable"
publish: false
fetchTags: true
stableBuild: ${{ inputs.is_prelease == 'false' }}
stableBuild: ${{ github.event_name != 'workflow_dispatch' && inputs.is_prelease == 'false' }}
secrets: inherit

# Windows
Expand All @@ -131,7 +134,7 @@ jobs:
buildSystem: cmake
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
fetchTags: true
stableBuild: ${{ inputs.is_prelease == 'false' }}
stableBuild: ${{ github.event_name != 'workflow_dispatch' && inputs.is_prelease == 'false' }}
secrets: inherit

# MacOS
Expand All @@ -145,7 +148,7 @@ jobs:
jobName: "MacOS Build"
artifactPrefixName: "PCSX2-macos-Qt"
fetchTags: true
stableBuild: ${{ inputs.is_prelease == 'false' }}
stableBuild: ${{ github.event_name != 'workflow_dispatch' && inputs.is_prelease == 'false' }}
secrets: inherit

# Upload the Artifacts
Expand Down

0 comments on commit 8c1c18a

Please sign in to comment.