-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (70 loc) · 2.15 KB
/
rw-entry-release-baseset.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Release (Baseset)
# A generic reusing workflow that releases a OpenTTD baseset project (OpenGFX, OpenSFX, or OpenMSX).
on:
workflow_call:
inputs:
apt-packages:
description: A list of apt packages to install.
required: false
type: string
name:
description: The name of the project.
required: true
type: string
pip-packages:
description: A list of pip packages to install.
required: false
type: string
problem-matcher:
description: A problem matcher to use.
default: ""
required: false
type: string
secrets:
CDN_SIGNING_KEY:
description: The signing key for the CDN.
required: true
DEPLOYMENT_APP_ID:
description: The ID of the GitHub App used to trigger deployments.
required: true
DEPLOYMENT_APP_PRIVATE_KEY:
description: The private key of the GitHub App used to trigger deployments.
required: true
concurrency:
group: release
cancel-in-progress: false
jobs:
metadata:
name: Metadata
uses: ./.github/workflows/rw-baseset-metadata.yml
with:
name: ${{ inputs.name }}
build:
if: ${{ needs.metadata.outputs.skip == 'false' }}
needs:
- metadata
name: Build
uses: ./.github/workflows/rw-baseset-build.yml
with:
apt-packages: ${{ inputs.apt-packages }}
name: ${{ inputs.name }}
pip-packages: ${{ inputs.pip-packages }}
problem-matcher: ${{ inputs.problem-matcher }}
publish: true
release-date: ${{ needs.metadata.outputs.release-date }}
version: ${{ needs.metadata.outputs.version }}
publish:
if: ${{ needs.metadata.outputs.skip == 'false' }}
needs:
- build
- metadata
name: Publish
uses: ./.github/workflows/rw-cdn-upload.yml
secrets:
CDN_SIGNING_KEY: ${{ secrets.CDN_SIGNING_KEY }}
DEPLOYMENT_APP_ID: ${{ secrets.DEPLOYMENT_APP_ID }}
DEPLOYMENT_APP_PRIVATE_KEY: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}
with:
artifact-name: bundles
folder: ${{ needs.metadata.outputs.folder }}
version: ${{ needs.metadata.outputs.version }}