Skip to content
Snippets Groups Projects
Commit d18f5688 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Try automated releases

parent 7c363769
No related branches found
No related tags found
No related merge requests found
build
*.deb
*.zip
**/config.cpp
**/config.h
_CPack_Packages
\ No newline at end of file
......@@ -11,6 +11,7 @@ stages:
- build
- test
- pack
- release
flawfinder-sast:
stage: static
......@@ -129,7 +130,7 @@ linux:pack:
artifacts:
when: always
paths:
- build/*.deb
- *.deb
expire_in: 1 week
### Windows
......@@ -207,5 +208,25 @@ windows:pack:
artifacts:
when: always
paths:
- build/*.zip
- *.zip
expire_in: 1 week
# Release
release_job:
stage: release
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created manually
script:
- echo "running release_job"
needs:
- job: windows:pack
artifacts: true
- job: linux:pack
artifacts: true
release:
name: 'Release $CI_COMMIT_TAG'
description: 'Automatic CI Release'
tag_name: '$CI_COMMIT_TAG' # elsewhere in the pipeline.
ref: '$CI_COMMIT_TAG'
......@@ -3,7 +3,7 @@ include (CheckIncludeFile)
include (CheckIncludeFileCXX)
include (CheckFunctionExists)
if (NOT FTL_VERSION OR FTL_VERSION STREQUAL "$Env:CI_COMMIT_TAG")
if (NOT FTL_VERSION)
set(FTL_VERSION 0.0.1)
endif()
......
......@@ -2,6 +2,7 @@
string(TIMESTAMP BUILD_TIME "%Y%m%d")
set(CPACK_PACKAGE_VERSION_PATCH "${BUILD_TIME}")
set(CPACK_PACKAGE_NAME "libftl-protocol")
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_SOURCE_DIR}")
set(CPACK_DEBIAN_PACKAGE_NAME "FTL Protocol Library")
set(CPACK_PACKAGE_VENDOR "University of Turku")
set(CPACK_PACKAGE_DESCRIPTION "Networking and streaming library for FTL data")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment