Skip to content

Commit 0b49f7e

Browse files
authored
Create nmc-app-release.yml
1 parent 4ac9b41 commit 0b49f7e

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/nmc-app-release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
###
2+
# SPDX-License-Identifier: AGPL-3.0
3+
#
4+
# Author: Bernd rederlechner <bernd.rederlechner@t-systems.com>
5+
#
6+
# Builds a stable release package based on a release assembly
7+
# customisation-<version>-<increment>
8+
#
9+
# As soon as a package is deployed to production, the tag and the branch
10+
# MUST STAY FOR 2 years and not deleted.
11+
#
12+
# Release packages, tags and customisation branches not delivered to production should
13+
# be deleted asap a newer release is available.
14+
#
15+
16+
name: MCLOUD app release
17+
18+
on:
19+
20+
workflow_dispatch:
21+
inputs:
22+
branch:
23+
type: choice
24+
description: Branch to build a package from HEAD
25+
options:
26+
- main
27+
- master
28+
- stable25
29+
- stable26
30+
- stable27
31+
- stable28
32+
increment:
33+
description: 'Release increment'
34+
required: true
35+
type: number
36+
37+
jobs:
38+
check-app:
39+
uses: nextmcloud/.github/.github/workflows/nmc-app-precond.yml@master
40+
with:
41+
versionbranch: ${{ inputs.branch }}
42+
increment: ${{ inputs.increment }}
43+
secrets: inherit
44+
build-app:
45+
uses: nextmcloud/.github/.github/workflows/nmc-app-build.yml@master
46+
needs: check-app
47+
with:
48+
appname: ${{ needs.check-app.outputs.appname }}
49+
branch: ${{ inputs.branch }}
50+
tag: ${{ needs.check-app.outputs.tag }}
51+
prerelease: ${{ inputs.branch == 'main' && true || false }}
52+
secrets: inherit

0 commit comments

Comments
 (0)