-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (41 loc) · 1.31 KB
/
create_release.yml
File metadata and controls
48 lines (41 loc) · 1.31 KB
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
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
name: Create release
on:
workflow_dispatch:
inputs:
sha1:
type: string
required: true
description: "sha1 to be tagged"
version:
type: string
required: true
description: "Desired numeric version (without any prefix/suffix)"
permissions:
contents: write
actions: write
jobs:
create_release:
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Checkout CI tools
uses: actions/checkout@v6
with:
repository: KDABLabs/ci-release-tools
path: ci-release-tools
ref: main
- name: Setup git author name
run: |
git config --global user.email "github_actions@kdab"
git config --global user.name "KDAB GitHub Actions"
- name: Create release
run: |
python3 ci-release-tools/src/create_release.py --repo KDStateMachineEditor --version ${{ github.event.inputs.version }} --sha1 ${{ github.event.inputs.sha1 }} --repo-path .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}