|
| 1 | +name: Release |
| 2 | + |
| 3 | +# ONE release workflow for the whole fleet. |
| 4 | +# |
| 5 | +# Every app used to carry three caller files (`release-development.yml`, |
| 6 | +# `release-beta.yml`, `release-stable.yml`) pointing at two different shared |
| 7 | +# workflows. Those two drifted: the pair edited `appinfo/info.xml` in the |
| 8 | +# working tree only, so their tags named commits still showing the PREVIOUS |
| 9 | +# version — harmless for a timestamped dev build, wrong for a stable release, |
| 10 | +# because Nextcloud's release template asserts |
| 11 | +# [ "$APP_VERSION" = "v$(xpath info.xml //version)" ] |
| 12 | +# |
| 13 | +# `release.yml` is the strict one and is now the only one. It commits the bump |
| 14 | +# to a `release/v<version>` branch, tags THAT commit, and opens a pull request |
| 15 | +# to bring the integration branch up — so the tag and the package agree without |
| 16 | +# anything pushing at a protected branch. |
| 17 | + |
| 18 | +on: |
| 19 | + push: |
| 20 | + branches: [main, beta, development] |
| 21 | + workflow_dispatch: |
| 22 | + |
| 23 | +# Releases publish artifacts. A cancelled release is neither a success nor a |
| 24 | +# rollback — it is a half-published version — so queued runs wait rather than |
| 25 | +# cancelling the one in flight. |
| 26 | +concurrency: |
| 27 | + group: release-${{ github.ref_name }} |
| 28 | + cancel-in-progress: false |
| 29 | + |
| 30 | +jobs: |
| 31 | + unstable: |
| 32 | + if: github.ref == 'refs/heads/development' |
| 33 | + uses: ConductionNL/.github/.github/workflows/release.yml@main |
| 34 | + with: |
| 35 | + release-type: unstable |
| 36 | + app-name: softwarecatalog |
| 37 | + secrets: inherit |
| 38 | + |
| 39 | + beta: |
| 40 | + if: github.ref == 'refs/heads/beta' |
| 41 | + uses: ConductionNL/.github/.github/workflows/release.yml@main |
| 42 | + with: |
| 43 | + release-type: beta |
| 44 | + app-name: softwarecatalog |
| 45 | + secrets: inherit |
| 46 | + |
| 47 | + stable: |
| 48 | + if: github.ref == 'refs/heads/main' |
| 49 | + uses: ConductionNL/.github/.github/workflows/release.yml@main |
| 50 | + with: |
| 51 | + release-type: stable |
| 52 | + app-name: softwarecatalog |
| 53 | + secrets: inherit |
0 commit comments