Skip to content

Create Draft Release #3

Create Draft Release

Create Draft Release #3

# /********************************************************************************
# * Copyright (c) 2024 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/
name: Create Draft Release
on:
workflow_dispatch: # input version manually. Overrides push tag
inputs:
vss-version:
description: "Release version, eg:latest, 4.2, 4.2rc0"
required: true
default: "0.0.0"
# Needed if GITHUB_TOKEN by default do not have right to create release
permissions:
contents: write
packages: write
jobs:
call_kuksa_databroker_build:
uses: ./.github/workflows/buildcheck.yml
with:
vss-version: ${{ inputs.vss-version }}
create_release:
runs-on: ubuntu-latest
needs:
[
call_kuksa_databroker_build
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: build-artifacts
merge-multiple: true
- name: Display structure of downloaded files
run: |
ls -R build-artifacts
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: VSS ${{ inputs.vss-version }}
fail_on_unmatched_files: true
files: |
build-artifacts/*