From 64dbfac188a6cdc8b347a9ca81b72817dd7c79fa Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Wed, 22 Aug 2018 14:30:02 -0500 Subject: [PATCH] fix artifact name --- .gitlab-ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13e76b4..e1de630 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,7 +82,7 @@ package-ubuntu-sdl2: script: - mkdir $PACKAGE_DIR - mkdir $PACKAGE_DIR/doc - - mv gsplus-ubuntu-sdl.bin $PACKAGE_DIR/gsplus + - cp gsplus-ubuntu-sdl.bin $PACKAGE_DIR/gsplus - cp src/config.txt $PACKAGE_DIR - 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> $PACKAGE_DIR/config.txt' - cp src/parallel.rom %PACKAGE_DIR% @@ -101,16 +101,16 @@ package-ubuntu-sdl2-deb: stage: package variables: GIT_STRATEGY: fetch - PACKAGE_NAME: gsplus_$CI_BUILD_ID-0 + PACKAGE_NAME: gsplus_$CI_VERSION-0 script: - mkdir -p $PACKAGE_NAME/usr/local/bin - mkdir -p $PACKAGE_NAME/DEBIAN - - cp gsplus $PACKAGE_NAME/usr/local/bin + - cp gsplus-ubuntu-sdl.bin $PACKAGE_NAME/usr/local/bin/gsplus - cp assets/control $PACKAGE_NAME/DEBIAN - - dpkg-dev --build $PACKAGE_NAME + - dpkg-deb --build $PACKAGE_NAME artifacts: paths: - - $PACKAGE_NAME + - $PACKAGE_NAME.deb expire_in: 10 minutes deploy-ubuntu: @@ -119,11 +119,11 @@ deploy-ubuntu: stage: deploy variables: GIT_STRATEGY: none - PACKAGE_NAME: gsplus_$CI_BUILD_ID-0 + PACKAGE_NAME: gsplus_$CI_VERSION-0 script: - aws s3 cp gsplus-ubuntu-sdl.tar.bz2 s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl/$CI_BUILD_ID/ --acl public-read - - aws s3 cp $PACKAGE_NAME s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl-deb/$CI_BUILD_ID/ --acl public-read + - aws s3 cp $PACKAGE_NAME.deb s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl-deb/$CI_BUILD_ID/ --acl public-read @@ -291,7 +291,6 @@ deploy-win-sdl2: update-website-universal: tags: - osx - - linux stage: updatewebsite variables: GIT_STRATEGY: none