From 3aaead00298af5cecd299329d7a4f089e79ba2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Thu, 9 Aug 2018 21:37:32 +0200 Subject: [PATCH] dev.mk: send only files of that kernel version Change-Id: Id419addac5ed55ad7fbbf18783ba19d5278e945f --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 672dfc906a8ab7..7d576f195838a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,8 +10,6 @@ variables: stages: [build] before_script: - - ln -s "$PWD" /usr/src/kernel-build - - cd /usr/src/kernel-build - ccache -M 0 -F 0 build: @@ -34,16 +32,16 @@ build: --target "${CI_COMMIT_SHA}" \ --draft - pushd ../ - for i in *.deb; do + for i in ../*$(./dev-make info)*.deb; do github-release upload \ --tag "${RELEASE_NAME}" \ - --name "${i}" \ + --name "$(basename "${i}")" \ --file "${i}" done - popd github-release edit \ --tag "${RELEASE_NAME}" \ --name "${RELEASE_TITLE}" \ --description "${DESCRIPTION}" + + rm ../*$(./dev-make info)*.deb