|  | 
|  | 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 custom app release | 
|  | 17 | + | 
|  | 18 | +on: | 
|  | 19 | +  workflow_dispatch: | 
|  | 20 | +    inputs: | 
|  | 21 | +      increment: | 
|  | 22 | +        description: 'Release increment' | 
|  | 23 | +        required: true | 
|  | 24 | +        type: number | 
|  | 25 | +      branch: | 
|  | 26 | +        type: choice | 
|  | 27 | +        description: Branch to build a package from | 
|  | 28 | +        options:  | 
|  | 29 | +          - main | 
|  | 30 | +          - stable25 | 
|  | 31 | +          - stable26 | 
|  | 32 | +          - stable27 | 
|  | 33 | +        default: main | 
|  | 34 | + | 
|  | 35 | +jobs: | 
|  | 36 | +  check-custom: | 
|  | 37 | +    uses: nextmcloud/.github/.github/workflows/nmc-app-precond.yml@master | 
|  | 38 | +    with: | 
|  | 39 | +      versionbranch: ${{ inputs.branch }} | 
|  | 40 | +      increment: ${{ inputs.increment }} | 
|  | 41 | +    secrets: inherit | 
|  | 42 | +  assemble-custom: | 
|  | 43 | +    uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master | 
|  | 44 | +    needs: check-custom | 
|  | 45 | +    with: | 
|  | 46 | +      trunk: 'main' | 
|  | 47 | +      stable: ${{ inputs.branch }} | 
|  | 48 | +      result: ${{ format('customisation-{0}-{1}', inputs.branch, inputs.increment ) }} | 
|  | 49 | +    secrets: inherit | 
|  | 50 | +  build-custom: | 
|  | 51 | +    uses: nextmcloud/.github/.github/workflows/nmc-custom-app-build.yml@master | 
|  | 52 | +    needs: [ check-custom, assemble-custom ] | 
|  | 53 | +    with: | 
|  | 54 | +      appname: ${{ needs.check-custom.outputs.appname }} | 
|  | 55 | +      assembly: ${{ format('customisation-{0}-{1}', inputs.branch , inputs.increment ) }} | 
|  | 56 | +      tag: ${{ needs.check-custom.outputs.tag }} | 
|  | 57 | +      prerelease: ${{ inputs.branch == 'main' && true || false }} | 
|  | 58 | +    secrets: inherit | 
0 commit comments