From 1991ec8c6ca352d1312367d7315c0834082b1ce9 Mon Sep 17 00:00:00 2001 From: "Bernd.Rederlechner@t-systems.com" Date: Thu, 27 Jul 2023 14:46:54 +0200 Subject: [PATCH] Add non-custom app packaging automation --- .../noncustom-app/nmc-app-release.yml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 workflow-templates/noncustom-app/nmc-app-release.yml diff --git a/workflow-templates/noncustom-app/nmc-app-release.yml b/workflow-templates/noncustom-app/nmc-app-release.yml new file mode 100644 index 0000000..4cf0046 --- /dev/null +++ b/workflow-templates/noncustom-app/nmc-app-release.yml @@ -0,0 +1,51 @@ +### +# SPDX-License-Identifier: AGPL-3.0 +# +# Author: Bernd rederlechner +# +# Builds a stable release package based on a release assembly +# customisation-- +# +# As soon as a package is deployed to production, the tag and the branch +# MUST STAY FOR 2 years and not deleted. +# +# Release packages, tags and customisation branches not delivered to production should +# be deleted asap a newer release is available. +# + +name: MCLOUD app release + +on: + workflow_dispatch: + inputs: + branch: + type: choice + description: Branch to build a package from + options: + - main + - stable25 + - stable26 + - stable27 + - stable28 + increment: + description: 'Release increment' + required: true + type: number + +jobs: + check-app: + uses: nextmcloud/.github/.github/workflows/nmc-custom-app-precond.yml@master + with: + versionbranch: ${{ inputs.branch }} + increment: ${{ inputs.increment }} + secrets: inherit + build-app: + uses: nextmcloud/.github/.github/workflows/nmc-app-build.yml@master + needs: check-app + with: + appname: ${{ jobs.check-app.appname }} + branch: ${{ inputs.branch }} + tag: ${{ jobs.check-app.tag }} + prerelease: ${{ inputs.branch == 'main' && true || false }} + secrets: inherit +