Skip to content

Commit ef9f15b

Browse files
committed
ci: Add our release workflow
1 parent 8db5a42 commit ef9f15b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Create release
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
sha1:
11+
type: string
12+
required: true
13+
description: "sha1 to be tagged"
14+
version:
15+
type: string
16+
required: true
17+
description: "Desired numeric version (without any prefix/suffix)"
18+
19+
permissions:
20+
contents: write
21+
actions: write
22+
23+
jobs:
24+
create_release:
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- name: Checkout sources
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Checkout CI tools
33+
uses: actions/checkout@v4
34+
with:
35+
repository: KDABLabs/ci-release-tools
36+
path: ci-release-tools
37+
ref: main
38+
39+
- name: Setup git author name
40+
run: |
41+
git config --global user.email "github_actions@kdab"
42+
git config --global user.name "KDAB GitHub Actions"
43+
44+
- name: Create release
45+
run: |
46+
python3 ci-release-tools/src/create_release.py --repo KDSingleApplication --version ${{ github.event.inputs.version }} --sha1 ${{ github.event.inputs.sha1 }} --repo-path .
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)