diff --git a/.github/workflows/call-auto-release.yml b/.github/workflows/call-auto-release.yml new file mode 100644 index 00000000..2908c9b9 --- /dev/null +++ b/.github/workflows/call-auto-release.yml @@ -0,0 +1,50 @@ +name: Auto Release +on: + workflow_dispatch: + inputs: + version: + description: 'Release version (e.g., 1.0.0)' + type: string + required: true + name: + description: 'The name of the person to release the version' + type: string + required: false + email: + description: 'The email of the person to release the version' + type: string + required: false + timezone: + description: 'The timezone in the debian changelog file' + required: false + type: string + default: 'Asia/Shanghai' + workflow_call: + inputs: + version: + description: 'Release version (e.g., 1.0.0)' + type: string + required: true + name: + description: 'The name of the person to release the version' + type: string + required: false + email: + description: 'The email of the person to release the version' + type: string + required: false + timezone: + description: 'The timezone in the debian changelog file' + required: false + type: string + default: 'Asia/Shanghai' + +jobs: + auto_release: + uses: linuxdeepin/.github/.github/workflows/auto-release.yml@master + secrets: inherit + with: + version: ${{ inputs.version }} + name: ${{ inputs.name }} + email: ${{ inputs.email }} + timezone: ${{ inputs.timezone }} diff --git a/.reuse/dep5 b/.reuse/dep5 index 9392f20f..7c7ff1c9 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -34,7 +34,7 @@ Copyright: UnionTech Software Technology Co., Ltd. License: CC-BY-4.0 # ci -Files: .github/* *.yml *.yaml .obs/* +Files: .github/* *.yml *.yaml .obs/* .syncexclude Copyright: None License: CC0-1.0 @@ -54,7 +54,7 @@ Copyright: None License: CC0-1.0 # cmake -Files: *.cmake *CMakeLists.txt *.in +Files: *.cmake *CMakeLists.txt *.in VERSION Copyright: None License: CC0-1.0 diff --git a/.syncexclude b/.syncexclude new file mode 100644 index 00000000..a6ab4e8a --- /dev/null +++ b/.syncexclude @@ -0,0 +1,2 @@ +linglong.yaml +VERSION diff --git a/CMakeLists.txt b/CMakeLists.txt index 78782cd2..70c2b7d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.10) -set(DTK_VERSION "5.6.23" CACHE STRING "Define project version") +file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION) +string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION) +set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "Define project version") project(DtkDeclarative VERSION "${DTK_VERSION}" DESCRIPTION "DTK Declarative module" diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..290c47f4 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +6.0.36 diff --git a/VERSION.in b/VERSION.in new file mode 100644 index 00000000..14d2ff63 --- /dev/null +++ b/VERSION.in @@ -0,0 +1 @@ +@version@