2023-02-21 05:01:17 +08:00
|
|
|
# creates a release from develop
|
|
|
|
# creates release branch, generates release assets, publishes docker image and copies release.md to release
|
|
|
|
# if formal release, linux packages are generated and a PR from release branch to master is created
|
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: "new version number"
|
|
|
|
required: true
|
|
|
|
prerelease:
|
2023-02-23 09:22:46 +08:00
|
|
|
required: true
|
2023-02-21 05:01:17 +08:00
|
|
|
type: boolean
|
|
|
|
description: Is this a pre-release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
release-branch:
|
2023-02-23 09:22:46 +08:00
|
|
|
uses: ./.github/workflows/release-branch.yml
|
|
|
|
with:
|
|
|
|
version: ${{ github.event.inputs.version }}
|
2023-02-21 05:01:17 +08:00
|
|
|
|
|
|
|
release-assets:
|
2023-02-23 09:22:46 +08:00
|
|
|
needs: release-branch
|
|
|
|
uses: ./.github/workflows/release-assets.yml
|
|
|
|
with:
|
|
|
|
version: ${{ github.event.inputs.version }}
|
|
|
|
prerelease: ${{ github.event.inputs.prerelease }}
|
2023-02-21 05:01:17 +08:00
|
|
|
|
|
|
|
docker:
|
2023-02-23 09:22:46 +08:00
|
|
|
needs: release-branch
|
|
|
|
uses: ./.github/workflows/publish-docker.yml
|
|
|
|
with:
|
|
|
|
version: ${{ github.event.inputs.version }}
|
2023-02-21 05:01:17 +08:00
|
|
|
|
|
|
|
packages:
|
2023-02-23 09:22:46 +08:00
|
|
|
if: {{ github.event.inputs.prerelease == 'false' }}
|
|
|
|
needs: release-branch
|
|
|
|
uses: ./.github/workflows/packages.yml
|
|
|
|
with:
|
|
|
|
version: ${{ github.event.inputs.version }}
|
2023-02-21 05:01:17 +08:00
|
|
|
|
|
|
|
pull-request:
|
2023-02-23 09:22:46 +08:00
|
|
|
if: {{ github.event.inputs.prerelease == 'false' }}
|
|
|
|
needs: release-branch
|
|
|
|
uses: ./.github/workflows/pull-request.yml
|
|
|
|
with:
|
|
|
|
version: ${{ github.event.inputs.version }}
|