-
Notifications
You must be signed in to change notification settings - Fork 172
51 lines (45 loc) · 1.26 KB
/
create_draft_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Create Draft Release
on:
workflow_dispatch: # input version manually. Overrides push tag
inputs:
vss-version:
description: "Release version (numerical version), e.g. 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: "v${{ inputs.vss-version }}"
fail_on_unmatched_files: true
files: |
build-artifacts/*
spec/units.yaml
spec/quantities.yaml