Skip to content

Marketplace Release #19

Marketplace Release

Marketplace Release #19

# SPDX-FileCopyrightText: © 2025 StreamKit Contributors
#
# SPDX-License-Identifier: MPL-2.0
name: Marketplace Release
on:
workflow_dispatch:
inputs:
snapshot_version:
description: "Marketplace snapshot version (e.g., 1.2.3, 0.2.0-dev)"
required: true
release_tag:
description: "Release tag (defaults to marketplace-v<snapshot_version>)"
required: false
prerelease:
description: "Mark release as prerelease"
required: false
type: boolean
default: false
env:
RELEASE_TAG: ${{ inputs.release_tag || format('marketplace-v{0}', inputs.snapshot_version) }}
jobs:
marketplace:
uses: ./.github/workflows/marketplace-build.yml
permissions:
contents: write
pull-requests: write
secrets: inherit
with:
snapshot_version: ${{ inputs.snapshot_version }}
release_tag: ${{ inputs.release_tag || format('marketplace-v{0}', inputs.snapshot_version) }}
create-release:
name: Create Marketplace Release
needs: [marketplace]
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.RELEASE_TAG }}
target_commitish: ${{ github.sha }}
name: "Marketplace ${{ inputs.snapshot_version }}"
files: |
artifacts/**/marketplace-bundles/*.tar.zst
body: |
Marketplace bundles for snapshot `${{ inputs.snapshot_version }}`.
draft: false
prerelease: ${{ inputs.prerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}