-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (45 loc) · 1.08 KB
/
prerelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish a pre-release
permissions:
contents: write
on:
push:
branches:
- develop
jobs:
package_tr1_multiplatform:
name: Build TR1
if: vars.PRERELEASE_ENABLE == 'true'
uses: ./.github/workflows/job_build_tr1.yml
with:
target: 'debug'
secrets: inherit
package_tr1_mac:
name: Build TR1
if: |
vars.PRERELEASE_ENABLE == 'true' &&
vars.MACOS_ENABLE == 'true'
uses: ./.github/workflows/job_build_tr1_macos.yml
with:
target: 'debug'
let_mac_fail: true
secrets: inherit
package_tr2_multiplatform:
name: Build TR2
if: vars.PRERELEASE_ENABLE == 'true'
uses: ./.github/workflows/job_build_tr2.yml
with:
target: 'debug'
secrets: inherit
publish_prerelease:
if: vars.PRERELEASE_ENABLE == 'true'
name: Create a prerelease
needs:
- package_tr1_multiplatform
- package_tr1_mac
- package_tr2_multiplatform
with:
draft: false
prerelease: true
tag_name: 'latest'
changelog_game_version: 'all'
uses: ./.github/workflows/job_release.yml