You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/.github/workflows/release.yml

57 lines
1.6 KiB

name: Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Existing tag to release"
required: true
target_branch:
description: "Branch that the release tag was created from"
required: true
permissions:
actions: write
contents: write
packages: write
concurrency:
group: release-${{ github.event.release.tag_name || inputs.tag }}
cancel-in-progress: false
jobs:
update-version:
permissions:
contents: write
uses: ./.github/workflows/update-version-file-on-release.yml
with:
tag: ${{ github.event.release.tag_name || inputs.tag }}
target_branch: ${{ github.event.release.target_commitish || inputs.target_branch }}
secrets: inherit
docker-image:
needs: update-version
permissions:
contents: read
packages: write
uses: ./.github/workflows/publish-docker-image.yml
with:
tag: ${{ github.event.release.tag_name || inputs.tag }}
checkout_sha: ${{ needs.update-version.outputs.updated_sha }}
checkout_short_sha: ${{ needs.update-version.outputs.updated_short_sha }}
secrets: inherit
service-images:
needs: update-version
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker-build-and-release-services-images.yml
with:
tag: ${{ github.event.release.tag_name || inputs.tag }}
checkout_sha: ${{ needs.update-version.outputs.updated_sha }}
checkout_short_sha: ${{ needs.update-version.outputs.updated_short_sha }}
secrets: inherit