2024-06-12 16:38:41 +00:00
|
|
|
# This workflow triggers alpha releases
|
|
|
|
|
|
|
|
name: Alpha release
|
|
|
|
|
|
|
|
run-name: "Alpha release '${{ inputs.git-ref }}' (version: 2.0.0-alpha.${{ inputs.patch }}, publish: ${{ inputs.publish || github.event_name == 'schedule' }})"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
git-ref:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: "The github ref of this alpha version (i.e. main, 1234567)"
|
|
|
|
default: main
|
|
|
|
patch:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: "The patch of this alpha version (i.e. 1, 2)"
|
|
|
|
publish:
|
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
description: "Publish the alpha release"
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Prepare alpha release
|
|
|
|
uses: ./.github/workflows/reusable_publish_version.yml
|
|
|
|
with:
|
|
|
|
environment: alpha
|
2024-07-31 15:24:02 +00:00
|
|
|
extra-features: storage-surrealkv,ml
|
2024-06-12 16:38:41 +00:00
|
|
|
git-ref: ${{ inputs.git-ref }}
|
|
|
|
patch: ${{ inputs.patch }}
|
|
|
|
publish: ${{ inputs.publish }}
|
|
|
|
create-release: ${{ inputs.publish }}
|
|
|
|
secrets: inherit
|