Skip to content

Commit c542bb0

Browse files
committed
Add release workflow
1 parent 50b237a commit c542bb0

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/copyright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
- main
2020
merge_group:
2121
types: [checks_requested]
22+
workflow_call:
2223
jobs:
2324
copyright-check:
2425
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main

.github/workflows/format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
- main
2020
merge_group:
2121
types: [checks_requested]
22+
workflow_call:
2223
jobs:
2324
formatting-check:
2425
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
name: Release
14+
run-name: Release ${{ inputs.tag }}
15+
on:
16+
pull_request:
17+
workflow_dispatch:
18+
inputs:
19+
tag:
20+
description: 'Release tag (e.g., v1.0.0)'
21+
required: true
22+
type: string
23+
concurrency:
24+
group: release
25+
jobs:
26+
#build-linux:
27+
# uses: ./.github/workflows/build_linux.yml
28+
#build-qnx:
29+
# uses: ./.github/workflows/build_qnx.yml
30+
#coverage-report:
31+
# uses: ./.github/workflows/coverage_report.yml
32+
format:
33+
uses: ./.github/workflows/format.yml
34+
copyright:
35+
uses: ./.github/workflows/copyright.yml
36+
create-release:
37+
#needs: [build-linux, build-qnx, coverage-report]
38+
needs: [format, copyright]
39+
runs-on: ubuntu-latest
40+
permissions:
41+
contents: write
42+
steps:
43+
- name: Checkout Repository
44+
uses: actions/checkout@v6
45+
- name: Create Draft Release
46+
uses: softprops/action-gh-release@v2
47+
with:
48+
tag_name: ${{ inputs.tag }}
49+
draft: true
50+
generate_release_notes: true
51+
target_commitish: ${{ github.sha }}

0 commit comments

Comments
 (0)