From cbd69a12f9d47757d03e47c919e4fac34ba6e685 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 10 Jan 2023 16:47:07 +0100 Subject: [PATCH] Add packaging for .tar.gz and release 0.15.1 (#425) --- .github/workflows/release.yml | 14 +++++++++++++- CHANGELOG.md | 7 +++++++ internal-modules/YCMVersion.cmake | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94934ef2..30532173 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,11 +32,12 @@ jobs: run: | mkdir -p build cd build - cmake -DYCM_MAINTAINER_MODE:BOOL=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_DEBIAN_PACKAGE_DEPENDS="cmake" \ + cmake -DYCM_MAINTAINER_MODE:BOOL=ON -DCPACK_BINARY_TGZ:BOOL=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_DEBIAN_PACKAGE_DEPENDS="cmake" \ -DCPACK_DEBIAN_PACKAGE_NAME="ycm-cmake-modules" -DCPACK_DEBIAN_PACKAGE_MAINTAINER="Silvio Traversaro" .. make make package rename 's/YCM/ycm-cmake-modules/' YCM-*-all.deb + rename 's/YCM/ycm-cmake-modules/' YCM-*-all.tar.gz export YCM_VERSION=`ls ycm-cmake-modules-*-all.deb | cut -d - -f 4` echo "YCM_VERSION=$YCM_VERSION" >> ${GITHUB_ENV} @@ -50,3 +51,14 @@ jobs: asset_path: build/ycm-cmake-modules-${{ env.YCM_VERSION }}-all.deb asset_name: ycm-cmake-modules-${{ env.YCM_VERSION }}-all.deb asset_content_type: application/octet-stream + + - name: Upload .tar.gz package + if: github.event_name == 'release' + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: build/ycm-cmake-modules-${{ env.YCM_VERSION }}-all.tar.gz + asset_name: ycm-cmake-modules-${{ env.YCM_VERSION }}-all.tar.gz + asset_content_type: application/octet-stream diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d7c1d36..8b3185d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased Patch] +## [0.15.1] - 2023-01-10 + +### Added + +* Added packaging for .tar.gz archives (https://github.com/robotology/ycm/pull/425). + + ## [0.15.0] - 2023-01-10 ### Added diff --git a/internal-modules/YCMVersion.cmake b/internal-modules/YCMVersion.cmake index d2d69023..a17a7878 100644 --- a/internal-modules/YCMVersion.cmake +++ b/internal-modules/YCMVersion.cmake @@ -32,7 +32,7 @@ include(GitInfo) set(YCM_VERSION_MAJOR 0) set(YCM_VERSION_MINOR 15) -set(YCM_VERSION_PATCH 0) +set(YCM_VERSION_PATCH 1) set(YCM_VERSION_API "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}") set(YCM_VERSION_SHORT "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}.${YCM_VERSION_PATCH}")