Skip to content

Commit 16496df

Browse files
committed
[CI] Added the manual build step if not publishing (either-or)
1 parent 42de711 commit 16496df

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/manual-build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,33 @@ jobs:
4242
version: ${{ inputs.version }}
4343

4444
tests:
45-
needs: [datagen]
4645
if: ${{ inputs.run_tests == 'true' }}
46+
needs: [ datagen ]
4747
uses: ./.github/workflows/_run-gametests.yml
4848
secrets: inherit
4949
with:
5050
version: ${{ inputs.version }}
5151

52+
build:
53+
if: ${{ inputs.release_packages == 'false' }}
54+
needs: [ tests ]
55+
uses: ./.github/workflows/_manual_build.yml
56+
secrets: inherit
57+
with:
58+
version: ${{ inputs.version }}
59+
5260
publish:
5361
if: ${{ inputs.release_packages == 'true' }}
54-
needs: [ tests]
62+
needs: [ tests ]
5563
uses: ./.github/workflows/_publish.yml
5664
secrets: inherit
5765
with:
5866
version: ${{ inputs.version }}
5967

6068
create-tag:
61-
name: Create tag
62-
needs: [publish]
6369
if: ${{ inputs.add_version_tag == 'true' }}
70+
name: Create tag
71+
needs: [ publish ]
6472
runs-on: ubuntu-latest
6573
steps:
6674
- name: Create tag
@@ -75,15 +83,15 @@ jobs:
7583
})
7684
7785
announce:
78-
name: Discord Announcement
7986
if: ${{ inputs.announce == 'true' }}
87+
name: Discord Announcement
8088
needs: [ publish ]
8189
uses: ./.github/workflows/_announce-latest-build.yml
8290
secrets: inherit
8391

8492
release-cf:
85-
name: Release Alpha on CurseForge
8693
if: ${{ inputs.release_cf == 'true' }}
94+
name: Release Alpha on CurseForge
8795
needs: [ publish ]
8896
uses: ./.github/workflows/_release-cf-alpha.yml
8997
secrets: inherit

0 commit comments

Comments
 (0)